summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-04-25 00:29:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-04-25 00:29:13 +0000
commit61376d9bed0a750e5c8acecf08134ec2a2af7164 (patch)
tree908f5c4e52dbd7e13b76f278562e605520d9b657 /clang/lib/Frontend/CompilerInvocation.cpp
parent69e68f84682cc4b9888d6794fac404902ddf214c (diff)
downloadbcm5719-llvm-61376d9bed0a750e5c8acecf08134ec2a2af7164.tar.gz
bcm5719-llvm-61376d9bed0a750e5c8acecf08134ec2a2af7164.zip
Bring r329960 back.
The fix is to copy Used when replacing the symbol. Original message: 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: 330788
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud