HomeFreeBSD

rtld: actually resolve memcpy plt

Description

rtld: actually resolve memcpy plt

The call to memcpy() meant to cause plt resolution in _thr_rtld_init()
was getting optimized by the compiler. Tell the compiler not to use its
builtins in thr_rtld.c. We could avoid just the memcpy builtin but
disabling all will be more robust against future changes.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D45891

Details

Provenance
rlibbyAuthored on Jul 7 2024, 11:46 PM
Reviewer
kib
Differential Revision
D45891: rtld: actually resolve memcpy plt
Parents
rG75694e650ed9: swap_pager: speedup meta_transfer
Branches
Unknown
Tags
Unknown