diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-12-27 07:29:55 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-12-27 07:29:55 +0000 |
commit | a0ab8d7a5890f0c4c3dc7b1c919fe7d65251ab31 (patch) | |
tree | daf20b28e9bb7da97ad58f3a5e71827980261574 /llvm/lib/Support/CommandLine.cpp | |
parent | edf3c8292b3694f1fb6dd4ef88d872aa22b2add9 (diff) | |
download | llvm-a0ab8d7a5890f0c4c3dc7b1c919fe7d65251ab31.zip llvm-a0ab8d7a5890f0c4c3dc7b1c919fe7d65251ab31.tar.gz llvm-a0ab8d7a5890f0c4c3dc7b1c919fe7d65251ab31.tar.bz2 |
[ELF] - Allow relocation to a weak undefined symbol when -z notext is given.
Previously we failed to resolve them when produced executables:
"relocation R_X86_64_32 cannot be used against shared object; recompile with -fPIC"
Patch fixes it so that we resolve them to 0 for executables.
And for -shared case we still should produce the relocation.
This finishes fixing PR35720.
DIfferential revision: https://reviews.llvm.org/D41551
llvm-svn: 321473
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions