bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld: can't put data into PHDR types other than PT_LOAD


From: Ian Lance Taylor
Subject: Re: ld: can't put data into PHDR types other than PT_LOAD
Date: 30 Nov 2004 14:49:30 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Paul Koning <address@hidden> writes:

> In fact, what I want is a note section that is NOT accessible at run
> time.  It's there for a tool to see, but not for the loader to load.

Then you would normally put the data in a section which was not marked
allocatable.

> I tried to get data into the note section by supplying it from an
> object file, and also from data in the script itself.  Either way, I
> get the halfway result I mentioned: the length of the phdr reflects
> the amount of data I want, but the offset is zero.  When I don't
> also put it into the load segment, the note data tends to be at the
> end of the file (or rather, between the loadable stuff and the debug
> data).  That's fine, but only if the note phdr points to it, which it
> refuses to do.

Hmmm, this does sound like a bug.

Ian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]