This is an archive of the discontinued LLVM Phabricator instance.

ELF: Allow ICF on .data.rel.ro sections.
ClosedPublic

Authored by pcc on May 22 2018, 3:54 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.May 22 2018, 3:54 PM
ruiu added inline comments.May 22 2018, 4:06 PM
lld/ELF/ICF.cpp
165–167 ↗(On Diff #148120)

This expressionis perhaps a bit too long. I'd split it by defining bool IsWritable or something, with a comment explaning that .data.rel.ro is essentially read-only.

pcc updated this revision to Diff 148127.May 22 2018, 4:16 PM
pcc marked an inline comment as done.
  • Add comment
ruiu accepted this revision.May 22 2018, 4:24 PM

LGTM

This revision is now accepted and ready to land.May 22 2018, 4:24 PM
This revision was automatically updated to reflect the committed changes.