mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-27 05:00:15 +00:00
i386: make debug wrappers compatible with static PIE
Static PIE requires the use of PLT relocation.
This commit is contained in:
parent
0e1324e655
commit
ca230f5833
@ -28,8 +28,8 @@
|
||||
ENTRY (__memcpy_chk)
|
||||
movl 12(%esp), %eax
|
||||
cmpl %eax, 16(%esp)
|
||||
jb __chk_fail
|
||||
jmp memcpy
|
||||
jb HIDDEN_JUMPTARGET (__chk_fail)
|
||||
jmp JUMPTARGET (memcpy)
|
||||
END (__memcpy_chk)
|
||||
libc_hidden_builtin_def (__memcpy_chk)
|
||||
#endif
|
||||
|
@ -27,8 +27,8 @@
|
||||
ENTRY (__memmove_chk)
|
||||
movl 12(%esp), %eax
|
||||
cmpl %eax, 16(%esp)
|
||||
jb __chk_fail
|
||||
jmp memmove
|
||||
jb HIDDEN_JUMPTARGET (__chk_fail)
|
||||
jmp JUMPTARGET (memmove)
|
||||
END (__memmove_chk)
|
||||
libc_hidden_builtin_def (MEMMOVE_CHK)
|
||||
#endif
|
||||
|
@ -27,8 +27,8 @@
|
||||
ENTRY (__mempcpy_chk)
|
||||
movl 12(%esp), %eax
|
||||
cmpl %eax, 16(%esp)
|
||||
jb __chk_fail
|
||||
jmp __mempcpy
|
||||
jb HIDDEN_JUMPTARGET (__chk_fail)
|
||||
jmp HIDDEN_JUMPTARGET (__mempcpy)
|
||||
END (__mempcpy_chk)
|
||||
libc_hidden_builtin_def (__mempcpy_chk)
|
||||
#endif
|
||||
|
@ -27,8 +27,8 @@
|
||||
ENTRY (__memset_chk)
|
||||
movl 12(%esp), %eax
|
||||
cmpl %eax, 16(%esp)
|
||||
jb __chk_fail
|
||||
jmp memset
|
||||
jb HIDDEN_JUMPTARGET (__chk_fail)
|
||||
jmp JUMPTARGET (memset)
|
||||
END (__memset_chk)
|
||||
libc_hidden_builtin_def (__memset_chk)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user