This is an archive of the discontinued LLVM Phabricator instance.

ELF: Read address significance tables with --icf=all.
ClosedPublic

Authored by pcc on Jul 20 2018, 5:42 PM.

Details

Summary

Under --icf=all we now only apply KeepUnique to non-executable
address-significant sections. This has the effect of making --icf=all
mean unsafe ICF for executable sections and safe ICF for non-executable
sections.

With this change the meaning of the KeepUnique bit changes to
"does the current ICF mode (together with the --keep-unique and
--ignore-data-address-equality flags) require this section to be
kept unique".

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

pcc created this revision.Jul 20 2018, 5:42 PM
ruiu accepted this revision.Jul 20 2018, 6:42 PM

LGTM

lld/ELF/Driver.cpp
1243 ↗(On Diff #156653)

if -> even if?

This revision is now accepted and ready to land.Jul 20 2018, 6:42 PM
This revision was automatically updated to reflect the committed changes.
pcc marked an inline comment as done.