This is an archive of the discontinued LLVM Phabricator instance.

[Driver] -static-pie: add -z text
ClosedPublic

Authored by MaskRay on May 29 2019, 9:04 AM.

Details

Summary

gcc -static-pie adds -z text.

In ld.bfd and gold, default/-z text/-z notext are tri-state.
By default, text relocations (and DF_TEXTREL) are emitted on demand.
-z text disables that.

In lld, -z text (default) and -z notext are bi-state. This change is a no-op.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.May 29 2019, 9:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2019, 9:04 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.May 29 2019, 9:52 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2019, 6:53 PM