mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
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>
This commit is contained in:
parent
51cb52214f
commit
c73c96a4a1
@ -27,7 +27,7 @@
|
||||
#define LEN SRC+4
|
||||
|
||||
.text
|
||||
#if defined PIC && IS_IN (libc)
|
||||
#if defined SHARED && IS_IN (libc)
|
||||
ENTRY_CHK (__memcpy_chk)
|
||||
movl 12(%esp), %eax
|
||||
cmpl %eax, 16(%esp)
|
||||
|
@ -27,7 +27,7 @@
|
||||
#define LEN SRC+4
|
||||
|
||||
.text
|
||||
#if defined PIC && IS_IN (libc)
|
||||
#if defined SHARED && IS_IN (libc)
|
||||
ENTRY_CHK (__mempcpy_chk)
|
||||
movl 12(%esp), %eax
|
||||
cmpl %eax, 16(%esp)
|
||||
|
@ -32,4 +32,6 @@ libc_ifunc_redirected (__redirect_memcpy_chk, __memcpy_chk,
|
||||
__hidden_ver1 (__memcpy_chk, __GI___memcpy_chk, __redirect_memcpy_chk)
|
||||
__attribute__ ((visibility ("hidden"))) __attribute_copy__ (__memcpy_chk);
|
||||
# endif
|
||||
#else
|
||||
# include <debug/memcpy_chk.c>
|
||||
#endif
|
||||
|
@ -32,4 +32,6 @@ libc_ifunc_redirected (__redirect_memmove_chk, __memmove_chk,
|
||||
__hidden_ver1 (__memmove_chk, __GI___memmove_chk, __redirect_memmove_chk)
|
||||
__attribute__ ((visibility ("hidden"))) __attribute_copy__ (__memmove_chk);
|
||||
# endif
|
||||
#else
|
||||
# include <debug/memmove_chk.c>
|
||||
#endif
|
||||
|
@ -32,4 +32,6 @@ libc_ifunc_redirected (__redirect_mempcpy_chk, __mempcpy_chk,
|
||||
__hidden_ver1 (__mempcpy_chk, __GI___mempcpy_chk, __redirect_mempcpy_chk)
|
||||
__attribute__ ((visibility ("hidden"))) __attribute_copy__ (__mempcpy_chk);
|
||||
# endif
|
||||
#else
|
||||
# include <debug/mempcpy_chk.c>
|
||||
#endif
|
||||
|
@ -32,4 +32,6 @@ libc_ifunc_redirected (__redirect_memset_chk, __memset_chk,
|
||||
__hidden_ver1 (__memset_chk, __GI___memset_chk, __redirect_memset_chk)
|
||||
__attribute__ ((visibility ("hidden"))) __attribute_copy__ (__memset_chk);
|
||||
# endif
|
||||
#else
|
||||
# include <debug/memset_chk.c>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user