[COFF] more informative "broken object file" diagnostics
authorBob Haarman <llvm@inglorion.net>
Wed, 25 Apr 2018 23:33:19 +0000 (23:33 +0000)
committerBob Haarman <llvm@inglorion.net>
Wed, 25 Apr 2018 23:33:19 +0000 (23:33 +0000)
commit947647d0c1fd9557f2dd8ddda3a15622da2c7f77
tree203956a0cca4f0b043ca9efcac764b5ec6b122b4
parent310bca01781bff0d71c2d69a952b3a7bd6b6ef2a
[COFF] more informative "broken object file" diagnostics

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.

Reviewers: pcc, ruiu

Reviewed By: ruiu

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D46090

llvm-svn: 330883
lld/COFF/InputFiles.cpp