diff options
author | Martin Storsjö <martin@martin.st> | 2023-10-04 10:54:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 10:54:50 +0300 |
commit | 503bc5f66111f7e4fc79972bb9bfec8bb5606bab (patch) | |
tree | 246d376b250d2986b3169b8bfe8d1a0fcbd51b54 /llvm/lib/Object/ObjectFile.cpp | |
parent | 9748f981161573648ac24ca9541f9ab08cbc9c15 (diff) | |
download | llvm-503bc5f66111f7e4fc79972bb9bfec8bb5606bab.zip llvm-503bc5f66111f7e4fc79972bb9bfec8bb5606bab.tar.gz llvm-503bc5f66111f7e4fc79972bb9bfec8bb5606bab.tar.bz2 |
[LLD] [COFF] Fix handling of comdat .drectve sections (#68116)
This can happen when manually emitting strings into .drectve sections
with `__attribute__((section(".drectve")))`, which is a way to emulate
`#pragma comment(linker, "...")` for mingw compilers, without requiring
building with -fms-extensions.
Normally, this doesn't generate any comdat, but if compiled with
-fsanitize=address, this section does get turned into a comdat section.
This fixes #67261. This issue can be seen as a regression; a change in
the "lli" tool in 17.x triggers this case, if compiled with ASAN
enabled, triggering this unsupported corner case in LLD. With this
change, LLD can handle it.
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions