This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: Help with linker script to relocate a .note section


On Mon, Jan 07, 2008 at 12:11:49PM -0500, Paul Koning wrote:
>  Alan> You can't do this, unless you make a loadable note section.
>  Alan> All load, alloc sections get placed first in the file, then
>  Alan> non-loaded sections.
> 
> I remember I had this work once early on (but at that time the linker
> had a bug so it would create the section but wouldn't put stuff in it,
> or something like that).
> 
> Having the ability to put NOTE sections up front is useful because
> they can then be used to put markers in the image that are seen when
> it is loaded.  That's what I needed to do.  In the end I ended up
> creating a custom tool to create the NOTE section directly, rather
> than relying on compiler/linker to do it.

How does this conflict with what Alan said?  Make the note loadable.
See .note.gnu.build.id.

-- 
Daniel Jacobowitz
CodeSourcery


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