Fix and simplify the reporting of undefined symbols.
Now reportUndefined only has to look at Config->UnresolvedSymbols and the symbol. getUnresolvedSymbolOption does all the hard work of mapping options like -shared and -z defs to one of the UnresolvedPolicy enum entries. The critical fix is that now "-z defs --warn-unresolved-symbols" only warns. llvm-svn: 293290
Showing
- lld/ELF/Config.h 1 addition, 1 deletionlld/ELF/Config.h
- lld/ELF/Driver.cpp 27 additions, 17 deletionslld/ELF/Driver.cpp
- lld/ELF/Relocations.cpp 6 additions, 6 deletionslld/ELF/Relocations.cpp
- lld/test/ELF/warn-unresolved-symbols-hidden.s 14 additions, 0 deletionslld/test/ELF/warn-unresolved-symbols-hidden.s
Loading
Please register or sign in to comment