aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-08-06 21:26:09 +0000
committerMartin Storsjo <martin@martin.st>2018-08-06 21:26:09 +0000
commit21858a9b6352e0f32fdf81bc5246d1f5ec7cd6db (patch)
treef793642d70e63f31dad7bb56bc20d0392d4b0cc8 /clang/unittests/Basic/VirtualFileSystemTest.cpp
parent9d7bb2f700317f6eabc1ea8cbd58065d0bc21ef9 (diff)
downloadllvm-21858a9b6352e0f32fdf81bc5246d1f5ec7cd6db.zip
llvm-21858a9b6352e0f32fdf81bc5246d1f5ec7cd6db.tar.gz
llvm-21858a9b6352e0f32fdf81bc5246d1f5ec7cd6db.tar.bz2
[COFF] Treat .xdata/.pdata$<sym> as implicitly associative to <sym> for MinGW
MinGW configurations don't use associative comdats, as GNU ld doesn't support that. Instead they produce normal comdats named .text$sym, .xdata$sym and .pdata$sym. GNU ld doesn't discard any comdats starting with .xdata or .pdata, even if --gc-sections is used (while it does discard other unreferenced comdats), regardless of what symbol name is used after the $ separator. For LLD, treat any such comdat as implicitly associative to the base symbol. This requires maintaining a map from symbol name to section number, but that is only maintained when the MinGW flag has been enabled. Differential Revision: https://reviews.llvm.org/D49700 llvm-svn: 339058
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions