aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2019-06-10 17:50:28 +0000
committerReid Kleckner <rnk@google.com>2019-06-10 17:50:28 +0000
commita5f2c208155acf6d5ad24d56aa15b417560b56e0 (patch)
tree2f460ba8b33916a994b2009802ecb125df967845 /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
parent54cbae1e8d5b5c16e5d596f2dd99c87880c0d685 (diff)
downloadllvm-a5f2c208155acf6d5ad24d56aa15b417560b56e0.zip
llvm-a5f2c208155acf6d5ad24d56aa15b417560b56e0.tar.gz
llvm-a5f2c208155acf6d5ad24d56aa15b417560b56e0.tar.bz2
Add unused symbol to thunk files to force wholearchive inclusion
These "dynamic_runtime_thunk" object files exist to create a weak alias from 'foo' to 'foo_dll' for all weak sanitizer runtime symbols. The weak aliases are implemented as /alternatename linker options in the .drective section, so they are not actually in the symbol table. In order to force the Visual C++ linker to load the object, even with -wholearchive:, we have to provide at least one external symbol. Once we do that, it will read the .drective sections and see the weak aliases. Fixes PR42074 llvm-svn: 362970
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions