This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] add tests for ICF, plus cleanups
ClosedPublic

Authored by gkm on Jun 22 2021, 9:26 AM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rG8a8558ae2795: [lld-macho] add tests for ICF, plus cleanups
Summary

Add tests for pending TODOs, plus some global cleanups:

  • No fold: func has personality/LSDA
  • Fold: reference to absolute symbol with different name but identical value
  • No fold: reloc references to absolute symbols with different values
  • No fold: N_ALT_ENTRY symbols

Diff Detail

Event Timeline

gkm created this revision.Jun 22 2021, 9:26 AM
Herald added a project: Restricted Project. · View Herald Transcript
gkm requested review of this revision.Jun 22 2021, 9:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2021, 9:26 AM
gkm retitled this revision from [lld-macho] add tests for ICF to [lld-macho] add tests for ICF, plus cleanups.Jun 22 2021, 9:28 AM
gkm edited the summary of this revision. (Show Details)
gkm edited the summary of this revision. (Show Details)
int3 added a comment.Jun 22 2021, 4:05 PM

Nice! Just one request: could we fix and test this too? https://reviews.llvm.org/D103292#inline-992625

lld/test/MachO/icf.s
6

-pie shouldn't be necessary, %lld expands out to include a modern platform_version that implies PIE

107
gkm updated this revision to Diff 354131.Jun 23 2021, 6:30 PM
gkm marked 2 inline comments as done.
  • revise according to review feedback
int3 accepted this revision.Jun 23 2021, 6:48 PM

Nice! Just one request: could we fix and test this too? https://reviews.llvm.org/D103292#inline-992625

As discussed offline, there seem to be underlying issues that make testing this hard, so we'll punt on it for now

This revision is now accepted and ready to land.Jun 23 2021, 6:48 PM
This revision was automatically updated to reflect the committed changes.