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] |
using binutils 2.16.1 (from MacPorts) or 2.17 (from source), doesn't work.Have you also tried the sources from the mainline of the binutils CVS repository ?
No, I just tried but got:
make[2]: *** No rule to make target `../bfd/bfd.h', needed by `size.o'. Stop.
* If you use the GNU version of ar to create the library, can gobjdump then recognise the file format of the blah.a file ? If so, are you able to identify the differences between blah.a created by the OS-X tool and the blah.a created by the GNU tool ?
GNU ar doesn't work. It gives me an "Invalid operation" error and then creates a broken library file.
* Can you run "gobjdump -a blah.a" from inside GDB and put a breakpoint on bfd_mach_o_archive_p() (in bfd/mach-o.c) ? Is this function called at all ? If so, then at what point inside the function does it decide that the blah.a file is not a MACH OS library file ?
The magic value is wrong. The code:
adata->magic = bfd_getb32 (buf); adata->nfat_arch = bfd_getb32 (buf + 4);
if ((adata->magic != 0xcafebabe)) goto error;
jumps to error, since the magic value of Apple's ar is 213c6172 (not a simple endian problem).
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |