You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
llvm-objcopy does not recognize import library created by llvm-mingw. The attached script works with MinGW but fails with LLVM: x86_64-w64-mingw32-objcopy: error: unsupported object file format
FWIW, it's not directly an issue with the objcopy tool itself, it's about the import library type; GNU tools produce import libraries where each member is a regular object file, while the LLVM tools produce the same kind as MSVC does, with the "short import library" style, where most members are a special kind of file. GNU objcopy also gives an error if doing the same operation on an import library generated by LLVM.
It's probably doable to make this particular trivial case of x86_64-w64-mingw32-objcopy test.dll.a test.copy.dll.a work, but what's the real objcopy operation that you want to do on the libraries, so that if I dig into it, I know what other case needs to work as well. Objcopy can do a dozen of different modifications, which can apply to some cases but not others (e.g. linked executables, or object files, different kinds of object file formats, etc).
I just wanted to try llvm-mingw for our project and came across this. The needed functionality would be --strip-symbol=. But now I see that while it works properly on mingw, the --out-implib adds the __imp_ prefix to all symbols so our project always does a full copy anyway. So I'll start with a dummy wrapper and see what comes next. Thank you for the explanation!
llvm-objcopy does not recognize import library created by llvm-mingw. The attached script works with MinGW but fails with LLVM:
x86_64-w64-mingw32-objcopy: error: unsupported object file format
The text was updated successfully, but these errors were encountered: