This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Improve --icf=safe diagnostic
ClosedPublic

Authored by MaskRay on Feb 2 2021, 8:22 PM.

Details

Summary

The current diagnostic has confused users. The new wording is adapted from one suggested by Ian Lance Taylor.

Diff Detail

Event Timeline

MaskRay created this revision.Feb 2 2021, 8:22 PM
MaskRay requested review of this revision.Feb 2 2021, 8:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2021, 8:22 PM

Seems reasonable to me. I gues my only question is: will most users understand what the address-significance table is?

lld/ELF/InputFiles.cpp
596

This should probably use the action section name, rather than hard-coding it in, since there's no requirement that SHT_LLVM_ADDRSIG sections be a specific name, to my knowledge. The section index might also be good. See also the describe method used by llvm-readobj for how we report issues with sections there.

MaskRay marked an inline comment as done.Feb 3 2021, 6:09 PM
jhenderson accepted this revision.Feb 4 2021, 12:53 AM

Looks good to me.

This revision is now accepted and ready to land.Feb 4 2021, 12:53 AM
This revision was automatically updated to reflect the committed changes.