about summary refs log tree commit diff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-03-19 18:10:04 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 01:17:56 +0200
commit8d873a4904e7808110a1170aba9ba9f74cd71137 (patch)
tree04ea30ffd1d84960472224376adb9cec38d62d5d /sysdeps/x86_64
parentfb9e7f6732311ed8874b6afc1ff4a331a9e6ba68 (diff)
downloadglibc-8d873a4904e7808110a1170aba9ba9f74cd71137.tar.gz
glibc-8d873a4904e7808110a1170aba9ba9f74cd71137.tar.xz
glibc-8d873a4904e7808110a1170aba9ba9f74cd71137.zip
x86_64: Add rtld-stpncpy & rtld-strncpy
Just like the other existing rtld-str* files, this provides rtld with
usable versions of stpncpy and strncpy.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230319151017.531737-22-bugaevc@gmail.com>
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r--sysdeps/x86_64/multiarch/rtld-stpncpy.S18
-rw-r--r--sysdeps/x86_64/multiarch/rtld-strncpy.S18
2 files changed, 36 insertions, 0 deletions
diff --git a/sysdeps/x86_64/multiarch/rtld-stpncpy.S b/sysdeps/x86_64/multiarch/rtld-stpncpy.S
new file mode 100644
index 0000000000..1c6780a1e1
--- /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
+   <https://www.gnu.org/licenses/>.  */
+
+#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 0000000000..500a10020e
--- /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
+   <https://www.gnu.org/licenses/>.  */
+
+#include "../strncpy.S"