This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Patch: Switch Linux/mips to stabs
- To: Jason R Thorpe <thorpej at zembu dot com>
- Subject: Re: Patch: Switch Linux/mips to stabs
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Date: Wed, 13 Jun 2001 15:05:15 +0200 (MET DST)
- cc: Ian Lance Taylor <ian at zembu dot com>, "Aaron J. Grier" <aaron at frye dot com>, binutils at sourceware dot cygnus dot com
- Organization: Technical University of Gdansk
- Reply-To: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
On Mon, 11 Jun 2001, Jason R Thorpe wrote:
> I don't want to modify the binary's internals. The executable, a
> kernel, is comprised of a single loadable section, a'la OMAGIC, and
> -N is provided to the linker along with a linker script that arranges
> the ELF image the right way. It is not intended to be paged.
OK -- I thought you want to reset D_PAGED upon objcopy.
> I simply want objcopy to copy the ELF image to an ECOFF image, and
> stamp the ECOFF image with the appropriate magic number. But because
> the ELF backend pretty much always sets D_PAGED, the ECOFF backend
> ! OMAGIC into the magic number.
Indeed.
> Now, if the linker were to not align the loadable part of the ELF
> image at 0x1000 offset into the file, then D_PAGED would not be set
> by the ELF backend, but I haven't been able to figure out why it's
> even doing so, considering I'm using ld -N.
I consider it a bug in the ELF backend. I'll look into it when my time
permits. Don't hold your breath, though.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +