diff options
author | Rui Ueyama <ruiu@google.com> | 2018-04-12 21:57:04 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-04-12 21:57:04 +0000 |
commit | 039d24877870c902274963250867a90b0b52f012 (patch) | |
tree | 0db899e4217245a2eb174f001d6ac6f3dc9ac71f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 1615da6f4eb17882b5234aec47c838af51e6122b (diff) | |
download | bcm5719-llvm-039d24877870c902274963250867a90b0b52f012.tar.gz bcm5719-llvm-039d24877870c902274963250867a90b0b52f012.zip |
Do not keep shared symbols created from garbage-collected eliminated DSOs.
If all references to a DSO happen to be weak, and if the DSO is
specified with --as-needed, the DSO is not added to DT_NEEDED.
If that happens, we also need to eliminate shared symbols created
from the DSO. Otherwise, they become dangling references that point
to non-exsitent DSO.
Fixes https://bugs.llvm.org/show_bug.cgi?id=36991
Differential Revision: https://reviews.llvm.org/D45536
llvm-svn: 329960
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions