[PATCH] D126898: [COFF] Check table ptr more thoroughly and ignore empty sections
Mike Hommey via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 21:04:12 PDT 2022
glandium added a comment.
So, looking a little bit deeper, the resource editor in NSIS doesn't handle relocations, and the .reloc section is right after the .rsrc section that the resource editor will grow... So they actually have a build rule to pass /FIXED to link.exe when building their stubs with MSVC. I suppose mingw-binutils defaults to non-relocatable .exes (because the problem doesn't appear when building with mingw-gcc/mingw-binutils), and we only end up with relocatable .exes because we're building with mingw-clang/lld and lld defaults to relocatable .exes.
I'd call this a build system bug.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126898/new/
https://reviews.llvm.org/D126898
More information about the llvm-commits
mailing list