summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-08-06 22:52:42 +0000
committerBill Wendling <isanbard@gmail.com>2013-08-06 22:52:42 +0000
commit58f8cef83b88687e09800540b61f70d275f2ec57 (patch)
tree7256594c2afb5293a0f97b132c53670950756d4a /llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
parentd78273f4fdce247ab52cb26ed0d1f908efb44f39 (diff)
downloadbcm5719-llvm-58f8cef83b88687e09800540b61f70d275f2ec57.tar.gz
bcm5719-llvm-58f8cef83b88687e09800540b61f70d275f2ec57.zip
Change the linkage of these global values to 'internal'.
The globals being generated here were given the 'private' linkage type. However, this caused them to end up in different sections with the wrong prefix. E.g., they would be in the __TEXT,__const section with an 'L' prefix instead of an 'l' (lowercase ell) prefix. The problem is that the linker will eat a literal label with 'L'. If a weak symbol is then placed into the __TEXT,__const section near that literal, then it cannot distinguish between the literal and the weak symbol. Part of the problems here was introduced because the address sanitizer converted some C strings into constant initializers with trailing nuls. (Thus putting them in the __const section with the wrong prefix.) The others were variables that the address sanitizer created but simply had the wrong linkage type. llvm-svn: 187827
Diffstat (limited to 'llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud