HomeFreeBSD

Second attempt at eliminating .text relocations in shared libraries
rS195697Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Second attempt at eliminating .text relocations in shared libraries
compiled with stack protector.

Use libssp_nonshared library to pull __stack_chk_fail_local symbol into
each library that needs it instead of pulling it from libc. GCC
generates local calls to this function which result in absolute
relocations put into position-independent code segment, making dynamic
loader do extra work every time given shared library is being relocated
and making affected text pages non-shareable.

Reviewed by: kib
Approved by: re (kib)

Details

Provenance
kanAuthored on
Parents
rS195696: MFC: Use the closefrom(2) system call.
Branches
Unknown
Tags
Unknown