This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Corrupt/malformed static libraries on WIN64


Hi Patrick,

In general, I get errors such as this when trying to do anything with the
static libraries created by these tools:

C:\msys\1.0\local\bin\x86_64-pc-mingw32-nm.exe: libwhatever.a: File format
not recognized

Are you still having this problem ?


If so, then maybe you can get a handle on where the problem might be by running x86_64-pc-mingw32-nm.exe under gdb and putting a breakpoint on the _bfd_default_error_handler. From there you should be able to backtrack to the code that was testing an object file's header looking for its type and then you can find out exactly why it thinks that the object file does not contain x86_64-pc-mingw32 binaries.

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]