diff options
author | Fangrui Song <i@maskray.me> | 2020-11-17 12:20:57 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-11-17 12:20:57 -0800 |
commit | 55d310adc068a569eaa5370e5b94428ed9ea7ed8 (patch) | |
tree | c74d19787218863ca80ee2abd8ac7db597d8f48e /llvm/lib/DebugInfo/PDB/Native/NativeFunctionSymbol.cpp | |
parent | 08834979e3aca762b0db05fbc73998aa07753bc2 (diff) | |
download | llvm-55d310adc068a569eaa5370e5b94428ed9ea7ed8.zip llvm-55d310adc068a569eaa5370e5b94428ed9ea7ed8.tar.gz llvm-55d310adc068a569eaa5370e5b94428ed9ea7ed8.tar.bz2 |
[ELF] Fix interaction between --unresolved-symbols= and --[no-]allow-shlib-undefined
As mentioned in https://reviews.llvm.org/D67479#1667256 ,
* `--[no-]allow-shlib-undefined` control the diagnostic for an unresolved symbol in a shared object
* `-z defs/-z undefs` control the diagnostic for an unresolved symbol in a regular object file
* `--unresolved-symbols=` controls both bits.
In addition, make --warn-unresolved-symbols affect --no-allow-shlib-undefined.
This patch makes the behavior match GNU ld.
Reviewed By: psmith
Differential Revision: https://reviews.llvm.org/D91510
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeFunctionSymbol.cpp')
0 files changed, 0 insertions, 0 deletions