summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexSymbol.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2019-01-24 19:02:31 +0000
committerRui Ueyama <ruiu@google.com>2019-01-24 19:02:31 +0000
commit18972d1ee960b6903aba3eaaef66f5d84a8010a2 (patch)
tree37b84f771de5e37abfafe4fdbecff56d174a4b6d /clang/lib/Index/IndexSymbol.cpp
parentc12a63432659632d96e94697e3047ff8baa27364 (diff)
downloadbcm5719-llvm-18972d1ee960b6903aba3eaaef66f5d84a8010a2.tar.gz
bcm5719-llvm-18972d1ee960b6903aba3eaaef66f5d84a8010a2.zip
Fix broken export table if .rdata is merged with .text.
Previously, we assumed that .rdata is zero-filled, so when writing an COFF import table, we didn't write anything if the data is zero. That assumption was wrong because .rdata can be merged with .text. If .rdata is merged with .text, they are initialized with 0xcc which is a trap instruction. This patch removes that assumption from code. Should be merged to 8.0 branch as this is a regression. Fixes https://bugs.llvm.org/show_bug.cgi?id=39826 Differential Revision: https://reviews.llvm.org/D57168 llvm-svn: 352082
Diffstat (limited to 'clang/lib/Index/IndexSymbol.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud