i686: Fix build with --disable-multiarch
commitc73c96a4a1af1326df7f96eec58209e1e04066d8
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 8 Aug 2023 12:27:55 +0000 (8 09:27 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 10 Aug 2023 13:29:29 +0000 (10 10:29 -0300)
tree4e0f960751da0b6a4d948d2e6137c834dedc8001
parent51cb52214fcd72849c640b12f5099ed3ac776181
i686: Fix build with --disable-multiarch

Since i686 provides the fortified wrappers for memcpy, mempcpy,
memmove, and memset on the same string implementation, the static
build tries to optimized it by not tying the fortified wrappers
to string routine (to avoid pulling the fortify function if
they are not required).

Checked on i686-linux-gnu building with different option:
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.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
sysdeps/i386/i686/memcpy.S
sysdeps/i386/i686/mempcpy.S
sysdeps/i386/i686/multiarch/memcpy_chk.c
sysdeps/i386/i686/multiarch/memmove_chk.c
sysdeps/i386/i686/multiarch/mempcpy_chk.c
sysdeps/i386/i686/multiarch/memset_chk.c