Static PIE requires the use of PLT relocation.
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
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
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
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