x86_64: Fix build with --disable-multiarch (BZ 30721)
commit51cb52214fcd72849c640b12f5099ed3ac776181
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 8 Aug 2023 12:27:54 +0000 (8 09:27 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 10 Aug 2023 13:29:29 +0000 (10 10:29 -0300)
treea7ab22731c2b75d2c0cda48aa60ac093de6f2b54
parentb163fca6c399808f6c447be98d09cd1165e78e07
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>
sysdeps/x86_64/memcpy.S
sysdeps/x86_64/memmove.S
sysdeps/x86_64/memset.S