This is the mail archive of the binutils@sources.redhat.com 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]

Re: Patch: Switch Linux/mips to stabs


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        +


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]