Linux MIPS Architecture development
 help / color / mirror / Atom feed
* link error with ramdisk file
@ 2001-09-29  1:27 Gerald Champagne
  2001-09-29  1:50 ` Geoffrey Espin
  0 siblings, 1 reply; 2+ messages in thread
From: Gerald Champagne @ 2001-09-29  1:27 UTC (permalink / raw)
  To: linux-mips@oss.sgi.com

I'm getting the following error when creating a ramdisk on a big endian system:

$ 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 big 
endian
File in wrong format: failed to merge target specific data of file ramdisk.gz


I get the same error regardless of what I use for the input file.  I don't 
understand how this linker error can occur when the input file format is binary.
Isn't the linker just ignoring the contents of the input file with the
"-b binary" option?

Thanks!

Gerald

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: link error with ramdisk file
  2001-09-29  1:27 link error with ramdisk file Gerald Champagne
@ 2001-09-29  1:50 ` Geoffrey Espin
  0 siblings, 0 replies; 2+ messages in thread
From: Geoffrey Espin @ 2001-09-29  1:50 UTC (permalink / raw)
  To: Gerald Champagne; +Cc: linux-mips@oss.sgi.com

Gerald,

> I'm getting the following error when creating a ramdisk on a big endian system:
> $ 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 big 
> endian
> 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:

    linux/arch/mips/philips/nino/ld.script

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.

Geoff
-- 
Geoffrey Espin espin@idiom.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-29  1:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-29  1:27 link error with ramdisk file Gerald Champagne
2001-09-29  1:50 ` Geoffrey Espin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox