This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Bug ld/12565] NOLOAD sections empty
- From: Doug Kwan (éæå) <dougkwan at google dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Nick Clifton <nickc at redhat dot com>, "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>, Alan Modra <amodra at gmail dot com>, binutils <binutils at sourceware dot org>
- Date: Thu, 30 Jun 2011 11:24:15 -0700
- Subject: Re: [Bug ld/12565] NOLOAD sections empty
- References: <bug-12565-70@http.sourceware.org/bugzilla/> <bug-12565-70-H4yGNZZKA2@http.sourceware.org/bugzilla/> <4E0C8A37.5090604@redhat.com> <mcr62nnqp43.fsf@coign.corp.google.com>
The ARM linux kernel also uses NOLOAD. I added support for that in
gold to link the kernel.
-Doug
On Thu, Jun 30, 2011 at 9:07 AM, Ian Lance Taylor <iant@google.com> wrote:
> 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
>