This is an archive of the discontinued LLVM Phabricator instance.

Add "-z lazy" and "-z relro".
ClosedPublic

Authored by ruiu on Apr 20 2018, 1:51 PM.

Event Timeline

ruiu created this revision.Apr 20 2018, 1:51 PM
tmsriram added inline comments.Apr 20 2018, 1:57 PM
lld/ELF/Driver.cpp
761–762

From man ld , Same here, "combreloc"

765–766

This is probably ok or maybe needs "copyreloc". In general, should every option here be negatable?

ruiu added inline comments.Apr 20 2018, 2:01 PM
lld/ELF/Driver.cpp
765–766

I'll add all gold's negative options. I'll upload a new patch.

ruiu updated this revision to Diff 143388.Apr 20 2018, 2:18 PM
  • add more flags
  • add tests
This revision is now accepted and ready to land.Apr 20 2018, 2:23 PM
This revision was automatically updated to reflect the committed changes.