diff options
| author | George Rimar <grimar@accesssoftek.com> | 2017-08-23 08:37:22 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2017-08-23 08:37:22 +0000 |
| commit | 51d193f8b366df812039b2b4b38525dfe16485b6 (patch) | |
| tree | d0960a36ec40f35b442383e86f321b83c669dc7e /llvm/tools/llvm-strings/llvm-strings.cpp | |
| parent | 24c98189edb82b3e06acc27b3515f7857ea3fc68 (diff) | |
| download | bcm5719-llvm-51d193f8b366df812039b2b4b38525dfe16485b6.tar.gz bcm5719-llvm-51d193f8b366df812039b2b4b38525dfe16485b6.zip | |
[ELF] - Fix for "Bug 34238 - LTO is optimizing away symbols referenced from linker scripts"
Code suggested by Rui Ueyama in PR34238 comments.
Previously LTO optimized away symbols referenced from linker script
because did not see that them are used from regular objects.
Patch adds such symbols as undefined earlier, before running LTO,
what sets IsUsedInRegularObj for them and fixes the issue.
Differential revision: https://reviews.llvm.org/D37009
llvm-svn: 311534
Diffstat (limited to 'llvm/tools/llvm-strings/llvm-strings.cpp')
0 files changed, 0 insertions, 0 deletions

