linux-mips
[Top] [All Lists]

Re: mipsel-linux-objcopy problem

To: Mark and Janice Juszczec <juszczec@hotmail.com>
Subject: Re: mipsel-linux-objcopy problem
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Tue, 3 Feb 2004 14:21:29 +0100 (CET)
Cc: linux-mips@linux-mips.org
In-reply-to: <Law10-F967gzKHmdpVn0001d29b@hotmail.com>
Organization: Technical University of Gdansk
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <Law10-F967gzKHmdpVn0001d29b@hotmail.com>
Sender: linux-mips-bounce@linux-mips.org
On Mon, 2 Feb 2004, Mark and Janice Juszczec wrote:

> # ls -l memload-full
> -rwxr-xr-x    1 root     root      1791550 Feb  1 20:35 memload-full
> 
> mipsel-unknown-linux-gnu-objcopy -Obinary --remove-section=.bss 
> --remove-section=.data --remove-section=.mdebug --pad-to=0x9fe00000 
> memload-full tryrom
> 
> # ls -l tryrom
> -rwxr-xr-x    1 root     root      1725680 Feb  1 21:01 tryrom
> 
> Any idea why tryrom made with mipsel-unknown-linux-gnu-objcopy ver 
> 2.13.90.0.18 is smaller than the one made with mipsel-linux-objcopy ver 
> 2.8.1

 Perhaps there's a bug in one or both of the versions.  2.8.1 is terribly
old and 2.13.90 (as all binutils versions with 9x at the third position)  
is a CVS snapshot.  You may try upgrading to 2.14 before starting further
experiments.

> This is a step in making a rom image for an emulator.  The emulator needs 
> the file tryrom to be  2097152.  I'm stuck.

 What does `readelf -e memload-full' output?

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

<Prev in Thread] Current Thread [Next in Thread>