mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
sysdeps/{i386, x86_64}/mempcpy_chk.S: fix linknamespace for __mempcpy_chk
On i386 and x86_64, for libc.a specifically, __mempcpy_chk calls mempcpy which leads POSIX routines to call non-POSIX mempcpy indirectly. This leads the linknamespace test to fail when glibc is built with __FORTIFY_SOURCE=3. Since calling mempcpy doesn't bring any benefit for libc.a, directly call __mempcpy instead. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
parent
9e6863a537
commit
1bc85effd5
@ -28,6 +28,6 @@ ENTRY (__mempcpy_chk)
|
||||
movl 12(%esp), %eax
|
||||
cmpl %eax, 16(%esp)
|
||||
jb __chk_fail
|
||||
jmp mempcpy
|
||||
jmp __mempcpy
|
||||
END (__mempcpy_chk)
|
||||
#endif
|
||||
|
@ -28,6 +28,6 @@
|
||||
ENTRY (__mempcpy_chk)
|
||||
cmpq %rdx, %rcx
|
||||
jb __chk_fail
|
||||
jmp mempcpy
|
||||
jmp __mempcpy
|
||||
END (__mempcpy_chk)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user