diff options
author | Fangrui Song <maskray@google.com> | 2020-01-13 21:30:05 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-01-14 10:12:28 -0800 |
commit | 40c5bd4212a51216a489fdaaf59060921d677009 (patch) | |
tree | 957fa535155c20b252edbb62114193fbbba89c8f /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 2948ec5ca98f8593584f2117bc92fe8d75f6f098 (diff) | |
download | bcm5719-llvm-40c5bd4212a51216a489fdaaf59060921d677009.tar.gz bcm5719-llvm-40c5bd4212a51216a489fdaaf59060921d677009.zip |
[ELF] --exclude-libs: don't assign VER_NDX_LOCAL to undefined symbols
Suggested by Peter Collingbourne.
Non-VER_NDX_GLOBAL versions should not be assigned to defined symbols. --exclude-libs violates this and can cause a spurious error "cannot refer to absolute symbol" after D71795.
excludeLibs incorrectly assigns VER_NDX_LOCAL to an undefined weak symbol =>
isPreemptible is false =>
R_PLT_PC is optimized to R_PC =>
in isStaticLinkTimeConstant, an error is emitted.
Reviewed By: pcc, grimar
Differential Revision: https://reviews.llvm.org/D72681
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions