diff options
author | Fangrui Song <maskray@google.com> | 2019-05-22 09:06:42 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-22 09:06:42 +0000 |
commit | b72b091389f6027882c32f4181139cb6af56f9ea (patch) | |
tree | 1f668597bb6525c677e6f8dc61a02987e9b5509f /llvm/lib/Object/COFFImportFile.cpp | |
parent | 1d846e1a4d64fbf892f2a16d76a4300af679699b (diff) | |
download | llvm-b72b091389f6027882c32f4181139cb6af56f9ea.zip llvm-b72b091389f6027882c32f4181139cb6af56f9ea.tar.gz llvm-b72b091389f6027882c32f4181139cb6af56f9ea.tar.bz2 |
[ELF] Improve error message for relocations to symbols defined in discarded sections
Rather than report "undefined symbol: ", give more informative message
about the object file that defines the discarded section.
In particular, PR41133, if the section is a discarded COMDAT, print the
section group signature and the object file with the prevailing
definition. This is useful to track down some ODR issues.
We need to
* add `uint32_t DiscardedSecIdx` to Undefined for this feature.
* make ComdatGroups public and change its type to DenseMap<CachedHashStringRef, const InputFile *>
Reviewed By: ruiu
Differential Revision: https://reviews.llvm.org/D59649
llvm-svn: 361359
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
0 files changed, 0 insertions, 0 deletions