i386: make debug wrappers compatible with static PIE

Static PIE requires the use of PLT relocation.
This commit is contained in:
Andreas Schwab 2023-07-12 11:29:34 +02:00
parent 0e1324e655
commit ca230f5833
4 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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