summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-05-26 12:09:26 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-05-26 12:09:26 +0000
commitc1a0364cd6d35e321f01cae8960a87802fb9275c (patch)
treef06f14735e9973681970e19cc3ed8af48333c090 /llvm/lib/Object/MachOObjectFile.cpp
parent9230610f0b8c7cba0bc74d63d17f04570946be73 (diff)
downloadbcm5719-llvm-c1a0364cd6d35e321f01cae8960a87802fb9275c.tar.gz
bcm5719-llvm-c1a0364cd6d35e321f01cae8960a87802fb9275c.zip
[ELF] - Do not produce duplicate values in .gdb_index's constant pool area.
I found this when builded llc binary using gcc 5.4.1 + LLD. gcc produces duplicate entries in .debug_gnu_pubtypes section, ex: UnifyFunctionExitNodes.cpp.o has: 0x0000ac07 EXTERNAL TYPE "std::success_type<void*>" 0x0000ac07 EXTERNAL TYPE "std::success_type<void*>" clang produces single entry here: 0x0000d291 EXTERNAL TYPE "std::__success_type<void *>" If we link output from gcc with LLD, that would produce excessive duplicate entries in .gdb_index constant pool area. That does not seem affect gdb work, but makes .gdb_index larger than it can be. I also checked that gold filters out such duplicates too. Patch fixes it. Differential revision: https://reviews.llvm.org/D32647 llvm-svn: 303975
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud