]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86_64: Fix build with --disable-multiarch (BZ 30721)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 8 Aug 2023 12:27:54 +0000 (09:27 -0300)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Thu, 17 Aug 2023 21:37:28 +0000 (23:37 +0200)
commit6135d50e44233d8c89ca788f78c669941ad09fb9
tree951627d0cc6c44e683b0a9def1660aca6fd121ec
parent5ea70cc02626d9b85f1570153873d8648a47bf95
x86_64: Fix build with --disable-multiarch (BZ 30721)

With multiarch disabled, the default memmove implementation provides
the fortify routines for memcpy, mempcpy, and memmove.  However, it
does not provide the internal hidden definitions used when building
with fortify enabled.  The memset has a similar issue.

Checked on x86_64-linux-gnu building with different options:
default and --disable-multi-arch plus default, --disable-default-pie,
--enable-fortify-source={2,3}, and --enable-fortify-source={2,3}
with --disable-default-pie.
Tested-by: Andreas K. Huettel <dilfridge@gentoo.org>
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 51cb52214fcd72849c640b12f5099ed3ac776181)
sysdeps/x86_64/memcpy.S
sysdeps/x86_64/memmove.S
sysdeps/x86_64/memset.S