summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-01-13 21:30:05 -0800
committerFangrui Song <maskray@google.com>2020-01-14 10:12:28 -0800
commit40c5bd4212a51216a489fdaaf59060921d677009 (patch)
tree957fa535155c20b252edbb62114193fbbba89c8f /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent2948ec5ca98f8593584f2117bc92fe8d75f6f098 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud