From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 1589F3858CDB for ; Sun, 2 Apr 2023 23:18:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1589F3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pj6xZ-0003YS-KE; Sun, 02 Apr 2023 19:18:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=In-Reply-To:MIME-Version:References:Subject:To:From: Date; bh=QKXxqfm4TlesHXYrXDHzhjDTXoZzLTj+bHul/VkB++c=; b=Ax335RsGpXVo8YIwASpS 2ms7z5lXdc4ddjLle66/6waTlojO5YnJS7hukyinBC742Is++mK2XwuCiQ/HkMooPWfEVQvajjBZG EArfGH7GiR9O5RZuV0EVhEPImAPS4PK6yelGOfXhFhWpE6VUm3GXIornIJsiHbJ4GzAlARHlrzmJg dfkCyMicxTGuIPV3Hbzw23iVKG5o7xxP7u3/5/UvodDPfeGYlDP+FOlp5T4sqb+pwajgzZV64y+v7 3IPf3a/1PF/joyGbBArpuBYXM9xzXdMlxErlLWAYz3dKCIkpnb3GQAuSkFjaIKBQ0RrpqEfs90gP6 fLRpwMfIkdhKSw==; Received: from [2a01:cb19:4a:a400:de41:a9ff:fe47:ec49] (helo=begin) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pj6xY-0000Rn-Uo; Sun, 02 Apr 2023 19:18:04 -0400 Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1pj6xX-00AtKa-1o; Mon, 03 Apr 2023 01:18:03 +0200 Date: Mon, 3 Apr 2023 01:18:03 +0200 From: Samuel Thibault To: Sergey Bugaev Cc: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: Re: [RFC PATCH glibc 21/34] x86_64: Add rtld-stpncpy & rtld-strncpy Message-ID: <20230402231803.ntyg3xb6puiaqf3t@begin> Mail-Followup-To: Sergey Bugaev , libc-alpha@sourceware.org, bug-hurd@gnu.org References: <20230319151017.531737-1-bugaevc@gmail.com> <20230319151017.531737-22-bugaevc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230319151017.531737-22-bugaevc@gmail.com> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_SHORT,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Applied, thanks! Sergey Bugaev, le dim. 19 mars 2023 18:10:04 +0300, a ecrit: > Just like the other existing rtld-str* files, this provides rtld with > usable versions of stpncpy and strncpy. > > Signed-off-by: Sergey Bugaev > --- > sysdeps/x86_64/multiarch/rtld-stpncpy.S | 18 ++++++++++++++++++ > sysdeps/x86_64/multiarch/rtld-strncpy.S | 18 ++++++++++++++++++ > 2 files changed, 36 insertions(+) > create mode 100644 sysdeps/x86_64/multiarch/rtld-stpncpy.S > create mode 100644 sysdeps/x86_64/multiarch/rtld-strncpy.S > > diff --git a/sysdeps/x86_64/multiarch/rtld-stpncpy.S b/sysdeps/x86_64/multiarch/rtld-stpncpy.S > new file mode 100644 > index 00000000..1c6780a1 > --- /dev/null > +++ b/sysdeps/x86_64/multiarch/rtld-stpncpy.S > @@ -0,0 +1,18 @@ > +/* Copyright (C) 2022-2023 Free Software Foundation, Inc. > + This file is part of the GNU C Library. > + > + The GNU C Library is free software; you can redistribute it and/or > + modify it under the terms of the GNU Lesser General Public > + License as published by the Free Software Foundation; either > + version 2.1 of the License, or (at your option) any later version. > + > + The GNU C Library is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + Lesser General Public License for more details. > + > + You should have received a copy of the GNU Lesser General Public > + License along with the GNU C Library; if not, see > + . */ > + > +#include "../stpncpy.S" > diff --git a/sysdeps/x86_64/multiarch/rtld-strncpy.S b/sysdeps/x86_64/multiarch/rtld-strncpy.S > new file mode 100644 > index 00000000..500a1002 > --- /dev/null > +++ b/sysdeps/x86_64/multiarch/rtld-strncpy.S > @@ -0,0 +1,18 @@ > +/* Copyright (C) 2022-2023 Free Software Foundation, Inc. > + This file is part of the GNU C Library. > + > + The GNU C Library is free software; you can redistribute it and/or > + modify it under the terms of the GNU Lesser General Public > + License as published by the Free Software Foundation; either > + version 2.1 of the License, or (at your option) any later version. > + > + The GNU C Library is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + Lesser General Public License for more details. > + > + You should have received a copy of the GNU Lesser General Public > + License along with the GNU C Library; if not, see > + . */ > + > +#include "../strncpy.S" > -- > 2.39.2 > -- Samuel --- Pour une évaluation indépendante, transparente et rigoureuse ! Je soutiens la Commission d'Évaluation de l'Inria.