mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01: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
4 changed files with 8 additions and 8 deletions
|
@ -28,8 +28,8 @@
|
||||||
ENTRY (__memcpy_chk)
|
ENTRY (__memcpy_chk)
|
||||||
movl 12(%esp), %eax
|
movl 12(%esp), %eax
|
||||||
cmpl %eax, 16(%esp)
|
cmpl %eax, 16(%esp)
|
||||||
jb __chk_fail
|
jb HIDDEN_JUMPTARGET (__chk_fail)
|
||||||
jmp memcpy
|
jmp JUMPTARGET (memcpy)
|
||||||
END (__memcpy_chk)
|
END (__memcpy_chk)
|
||||||
libc_hidden_builtin_def (__memcpy_chk)
|
libc_hidden_builtin_def (__memcpy_chk)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
ENTRY (__memmove_chk)
|
ENTRY (__memmove_chk)
|
||||||
movl 12(%esp), %eax
|
movl 12(%esp), %eax
|
||||||
cmpl %eax, 16(%esp)
|
cmpl %eax, 16(%esp)
|
||||||
jb __chk_fail
|
jb HIDDEN_JUMPTARGET (__chk_fail)
|
||||||
jmp memmove
|
jmp JUMPTARGET (memmove)
|
||||||
END (__memmove_chk)
|
END (__memmove_chk)
|
||||||
libc_hidden_builtin_def (MEMMOVE_CHK)
|
libc_hidden_builtin_def (MEMMOVE_CHK)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
ENTRY (__mempcpy_chk)
|
ENTRY (__mempcpy_chk)
|
||||||
movl 12(%esp), %eax
|
movl 12(%esp), %eax
|
||||||
cmpl %eax, 16(%esp)
|
cmpl %eax, 16(%esp)
|
||||||
jb __chk_fail
|
jb HIDDEN_JUMPTARGET (__chk_fail)
|
||||||
jmp __mempcpy
|
jmp HIDDEN_JUMPTARGET (__mempcpy)
|
||||||
END (__mempcpy_chk)
|
END (__mempcpy_chk)
|
||||||
libc_hidden_builtin_def (__mempcpy_chk)
|
libc_hidden_builtin_def (__mempcpy_chk)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
ENTRY (__memset_chk)
|
ENTRY (__memset_chk)
|
||||||
movl 12(%esp), %eax
|
movl 12(%esp), %eax
|
||||||
cmpl %eax, 16(%esp)
|
cmpl %eax, 16(%esp)
|
||||||
jb __chk_fail
|
jb HIDDEN_JUMPTARGET (__chk_fail)
|
||||||
jmp memset
|
jmp JUMPTARGET (memset)
|
||||||
END (__memset_chk)
|
END (__memset_chk)
|
||||||
libc_hidden_builtin_def (__memset_chk)
|
libc_hidden_builtin_def (__memset_chk)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue