From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id CA9CC3858C2B for ; Sun, 19 Mar 2023 15:11:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA9CC3858C2B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-x133.google.com with SMTP id br6so12000047lfb.11 for ; Sun, 19 Mar 2023 08:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679238676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=chWMAC9UUXBhF6BCwf0aNHH+U12GEWzdapM7A6/oqso=; b=CS21DaOhv+0iNlZsKPz5EJhhnjnIsYsq/HrwY3HFi4yxSic8Ll/HQXIM1IR/ByU4zW 1K1XXyeTK21DmxwHD6FZOoia8heqQWHV5EwkHZOV7fWgJ6rx/oUh0zwfbNS8HbbFpWyy BilgQcXuAi7pZ/a321Exk9i82LzFw6Z59hffYTiFy5SITxRFxCZ1Sb/a3JJM35RPjChK hq+Y6uFu4DUz7p8CwdRy+7Sd3XeJwr2nFRHlGRkNj1jFuiiPhBqKawJbDlSVPza25im3 8Na+nP/qolYgPWvKkV00pwXy4vEqTlRYHnbUy31f/ea4W47N1SYMe6VmgbuQKUYWZvvf XW6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679238676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=chWMAC9UUXBhF6BCwf0aNHH+U12GEWzdapM7A6/oqso=; b=8HVAS7J3PBbztopcX3sTL5XTkMU3nDgZyXz7azI64RpKvfGLY+7k71oW9erdUpsyV1 JJTW2MHNQbi1O9Jig5xRF09BpRPmJOkCE2ZAhSMjzpmUwDSuGR9F1QedWcu09RBMDbN3 bQcfW2sRJfx5gf3SZwDjWb4/o8FU5e/reRRT2vJ0yQO579KiKgp0bkwg5h4Rc0FJQrMz SKgpyUZpbEbEOUB+v82lETlC09gb/Fsg4jWTRJ64vulEi6jKDVA/tdK1oNNm+jIP9Kjj 0gblBtMpM+2JIbOn30QkBilTVCA1J6iDD/oW3ApEcoA4wkQD6xZ7joRW0EZUrfDkUvJ4 CdXA== X-Gm-Message-State: AO0yUKVlDZ9810LeyJmcOXJp0Fq0IqLz9xUWLld5L39Es7qUm7chTzRC bBtLjNNGAlPV16R4921pNbqIe5wTUXHmww== X-Google-Smtp-Source: AK7set9T0oVZNw/aw058km8X+h4+Qyp0PmbafTTIYxl0Cn0gB213swg2Vxuw+E7tMAdkZswQV8KlbQ== X-Received: by 2002:a05:6512:374d:b0:4e8:410d:9aef with SMTP id a13-20020a056512374d00b004e8410d9aefmr6085006lfs.54.1679238676173; Sun, 19 Mar 2023 08:11:16 -0700 (PDT) Received: from surface-pro-6.. ([2a00:1370:818c:4a57:577a:76f4:df43:5e66]) by smtp.gmail.com with ESMTPSA id m19-20020ac24253000000b004e90dee5469sm1274089lfl.157.2023.03.19.08.11.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 08:11:15 -0700 (PDT) From: Sergey Bugaev To: libc-alpha@sourceware.org, bug-hurd@gnu.org Cc: Samuel Thibault , Sergey Bugaev Subject: [RFC PATCH glibc 21/34] x86_64: Add rtld-stpncpy & rtld-strncpy Date: Sun, 19 Mar 2023 18:10:04 +0300 Message-Id: <20230319151017.531737-22-bugaevc@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230319151017.531737-1-bugaevc@gmail.com> References: <20230319151017.531737-1-bugaevc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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: 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