[Bug ld/12565] NOLOAD sections empty

Ian Lance Taylor iant@google.com
Thu Jun 30 16:39:00 GMT 2011


Nick Clifton <nickc@redhat.com> writes:

> I have been looking at PR 12565, and I have to say that I do not
> understand the linker's behaviour for NOLOAD sections on ELF based
> targets.  What is the point of having a section that cannot be loaded
> and that does not have any contents ?
>
> Also, as far as I can see, this behaviour is not documented
> anywhere. Do you know of any applications that rely upon this feature
> ?

If you look in the libgloss linker scripts you will see a bunch of uses
of NOLOAD.

I'm not sure whether any of them are really necessary, but they are
certainly there.

Ian



More information about the Binutils mailing list