diff options
author | Dmitry Mikulin <dmitry.mikulin@sony.com> | 2017-06-05 16:24:25 +0000 |
---|---|---|
committer | Dmitry Mikulin <dmitry.mikulin@sony.com> | 2017-06-05 16:24:25 +0000 |
commit | db3b87b2c0b8f238c470e7c007fee0586c1d9a8e (patch) | |
tree | dfcd229de2f5896b40659d4389c27819c2cbd40e /llvm/tools/llvm-lto2/llvm-lto2.cpp | |
parent | b2ef94862843e7f52ac873f86af041eac0a18d69 (diff) | |
download | bcm5719-llvm-db3b87b2c0b8f238c470e7c007fee0586c1d9a8e.tar.gz bcm5719-llvm-db3b87b2c0b8f238c470e7c007fee0586c1d9a8e.zip |
Symbols re-defined with -wrap and -defsym need to be excluded from inter-
procedural optimizations to prevent dropping symbols and allow the linker
to process re-directs.
PR33145: --wrap doesn't work with lto.
Differential Revision: https://reviews.llvm.org/D33621
llvm-svn: 304719
Diffstat (limited to 'llvm/tools/llvm-lto2/llvm-lto2.cpp')
-rw-r--r-- | llvm/tools/llvm-lto2/llvm-lto2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-lto2/llvm-lto2.cpp b/llvm/tools/llvm-lto2/llvm-lto2.cpp index 89f85157e1d..bbfece517c8 100644 --- a/llvm/tools/llvm-lto2/llvm-lto2.cpp +++ b/llvm/tools/llvm-lto2/llvm-lto2.cpp @@ -162,6 +162,8 @@ static int run(int argc, char **argv) { Res.FinalDefinitionInLinkageUnit = true; else if (C == 'x') Res.VisibleToRegularObj = true; + else if (C == 'r') + Res.LinkerRedefined = true; else { llvm::errs() << "invalid character " << C << " in resolution: " << R << '\n'; |