This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Support -z initfirst
ClosedPublic

Authored by MaskRay on Jun 19 2018, 11:14 AM.

Details

Summary

glibc uses this option to link libpthread.so

glibc/nptl/Makefile:
LDFLAGS-pthread.so = -Wl,--enable-new-dtags,-z,nodelete,-z,initfirst

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Jun 19 2018, 11:14 AM
echristo accepted this revision.Jun 19 2018, 1:48 PM

Seems reasonable and fairly obvious.

-eric

This revision is now accepted and ready to land.Jun 19 2018, 1:48 PM
This revision was automatically updated to reflect the committed changes.