Open encelo opened 2 years ago
@llvm/issue-subscribers-tools-llvm-objcopy-strip
This is still an issue today. Even on LLVM version 14.0
I found something that may be of value. It appears that this error is triggered when PointerToSymbolTable
is set in the PE IMAGE_FILE_HEADER
. If this is zeroed out, then llvm-strip
will work fine. Hope this helps...
A temporary fix would be also to compile with the linker flag --discard-all
, since it will avoid populating PointerToSymbolTable
.
@MaskRay maybe you know a way to solve this in llvm-strip
?
I'm the developer of nCine, a cross-platform 2D game framework that is constantly built by GitHub Actions using different compilers, on different platforms.
Since some months there is a combination in the test matrix that it consistently failing: when I compile my project on MSYS2 using clang then I have a strange issue with
llvm-strip
.The error message is:
C:\msys64\mingw64\bin/llvm-strip.exe: error: 'D:/a/nCine/nCine-build-DevDist/libncine.dll': unexpected associative section index
. Basically my library cannot be stripped for some reason and this was not happening some months ago.I can reproduce the issue on my machine with MSYS2 installed and Clang 13, it is not a GitHub Actions runner only issue.