This is an archive of the discontinued LLVM Phabricator instance.

[COFF] more informative "broken object file" diagnostics
ClosedPublic

Authored by inglorion on Apr 25 2018, 3:34 PM.

Details

Summary

When a symbol refers to a special section or a section that doesn't
exist, lld would fatal with "broken object file". This change gives a
different message for each scenario, and includes the name of the
file, name of the symbol, and the section being referred to.

Diff Detail

Repository
rL LLVM

Event Timeline

inglorion created this revision.Apr 25 2018, 3:34 PM
ruiu accepted this revision.Apr 25 2018, 3:35 PM

LGTM

This revision is now accepted and ready to land.Apr 25 2018, 3:35 PM
inglorion updated this revision to Diff 144025.Apr 25 2018, 3:36 PM

s/existant/existent/

This revision was automatically updated to reflect the committed changes.