[all-commits] [llvm/llvm-project] 55d310: [ELF] Fix interaction between --unresolved-symbols...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Nov 17 12:21:16 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 55d310adc068a569eaa5370e5b94428ed9ea7ed8
https://github.com/llvm/llvm-project/commit/55d310adc068a569eaa5370e5b94428ed9ea7ed8
Author: Fangrui Song <i at maskray.me>
Date: 2020-11-17 (Tue, 17 Nov 2020)
Changed paths:
M lld/ELF/Config.h
M lld/ELF/Driver.cpp
M lld/ELF/Writer.cpp
M lld/test/ELF/allow-shlib-undefined.s
M lld/test/ELF/unresolved-symbols.s
Log Message:
-----------
[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
More information about the All-commits
mailing list