This is an archive of the discontinued LLVM Phabricator instance.

Add -{no,}-check-sections flag to enable/disable section overlap checking.
ClosedPublic

Authored by ruiu on Feb 2 2018, 11:09 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu created this revision.Feb 2 2018, 11:09 AM
ruiu updated this revision to Diff 132681.Feb 2 2018, 2:06 PM
  • Rebase
ruiu added a reviewer: smeenai.Feb 2 2018, 2:07 PM
smeenai accepted this revision.Feb 2 2018, 2:21 PM

LGTM with the inline comment.

lld/ELF/Options.td
35–36 ↗(On Diff #132681)

Should these say "section" instead of "segment"?

This revision is now accepted and ready to land.Feb 2 2018, 2:21 PM
This revision was automatically updated to reflect the committed changes.

I think the test needs extending to include the "no warning printed" behaviour, specific to --no-check-sections.

I think the test needs extending to include the "no warning printed" behaviour, specific to --no-check-sections.

It's an error, not a warning, so just checking for the link to succeed should be enough, right?

Yes, but this switch shouldn't behave the same as --noinhibit-exec, which produces a warning, hence why I think it's worthwhile testing.