This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Bug ld/12565] NOLOAD sections empty
- From: Nick Clifton <nickc at redhat dot com>
- To: "Doug Kwan (éæå)" <dougkwan at google dot com>
- Cc: Ian Lance Taylor <iant at google 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: Fri, 01 Jul 2011 14:14:11 +0100
- 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> <CAH9SEo7YbgiDuYChAUXYjirrfv1OcXRDQd0cXipqat4=s75QaA@mail.gmail.com>
Hi Doug,
The ARM linux kernel also uses NOLOAD.
Do you know if this entirely for .bss style sections, or maybe for
establishing a region of memory mapped hardware or I/O ports ?
The point I am interested in is if we changed the current behaviour of
NOLOAD so that it *did* preserve the contents of any input sections (if
those contents were non-zero) would this break anything ? I am pretty
certain that it would, so I am not going to create a patch to make this
change. But I do wonder if there any applications out there that are
relying upon NOLOAD to actually get rid of the contents of input sections.
Cheers
Nick