This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Add support for -nopie
ClosedPublic

Authored by grimar on Oct 17 2016, 7:14 AM.

Details

Summary

This is https://llvm.org/bugs/show_bug.cgi?id=30696,

in compare with custom ld that OpenBSD uses, we do not have -pie by default.
That means -nopie can be implemented as noop in lld in theory.

At the same time looks if OpenBSD uses -pie as default we might want to support easy switch for them.
That what this patch do, it introduces way where change of single constant allows to select the default value
and -pie/-nopie options are also supported.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 74840.Oct 17 2016, 7:14 AM
grimar retitled this revision from to [ELF] - Add support for -nopie.
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
grimar updated this revision to Diff 74841.Oct 17 2016, 7:24 AM
  • Use of existent switch argument api instead of new method.
rafael accepted this revision.Oct 17 2016, 7:44 AM
rafael edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 17 2016, 7:44 AM
This revision was automatically updated to reflect the committed changes.