[Bug ld/12565] NOLOAD sections empty

2011-06-30 Thread davem at devkitpro dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12565

--- Comment #8 from davem at devkitpro dot org 2011-06-30 15:36:49 UTC ---
On Thu, Jun 30, 2011 at 3:37 PM, Nick Clifton ni...@redhat.com wrote:

 Hi H.J., Hi Alan,

 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 ?


I thought it was for bss segments.

I've been using that flag to allow me to overly bss sections on top of other
sections that are copied to other memory locations at runtime. If I didn't
use NOLOAD then the linker would complain about overlapping sections.

http://devkitpro.svn.sourceforge.net/viewvc/devkitpro/trunk/buildscripts/dkarm-eabi/crtls/ds_arm9.ld?revision=4706view=markupfor
example.

Dave

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12565] NOLOAD sections empty

2011-06-30 Thread davem at devkitpro dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12565

--- Comment #9 from davem at devkitpro dot org 2011-06-30 15:40:01 UTC ---
On Thu, Jun 30, 2011 at 3:37 PM, Nick Clifton ni...@redhat.com wrote:

 Hi H.J., Hi Alan,

 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 ?

I thought it was for bss segments.

I've been using that flag to allow me to overly bss sections on top of
other sections that are copied to other memory locations at runtime.
If I didn't use NOLOAD then the linker would complain about
overlapping sections.

http://devkitpro.svn.sourceforge.net/viewvc/devkitpro/trunk/buildscripts/dkarm-eabi/crtls/ds_arm9.ld?revision=4706view=markup
for example.

Dave

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils