> I'm getting the following error when creating a ramdisk on a big endian
> $ mips-linux-ld -T ld.script -b binary -o ramdisk.o ramdisk.gz
> mips-linux-ld: ramdisk.gz: compiled for a little endian system and target is
> File in wrong format: failed to merge target specific data of file ramdisk.gz
I recently had this mini-nightmare, too. I don't recall exactly
what I did to eliminate it. I'm now using:
and my home-built linker: :-)
% mipsel-linux-ld -v
GNU ld version 2.11.90 (with BFD 2.11.90)
I can't recall whether it was a bad linker, or wrong script, or something else.
What linker and script are you using?
At one stage I used:
EXTRA_LDFLAGS = --no-warn-mismatch
as a work-around. But now I've successfully disabled this.
Geoffrey Espin email@example.com