This is the mail archive of the binutils@sources.redhat.com 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]

Re: ld script problems: tagging a section (NOLOAD)


Alan,

Judging from the output of objdump -h, it still doesn't look like NOLOAD 
is doing anything.
The section should not have the LOAD flag set.
 
Here's the output of "objdump -h":

hello:     file format elf32-littlemips

Sections:
Idx Name          Size      VMA               LMA               File 
off  Algn
  0 .init         0000001c  0000000000400000  0000000000400000  
00006000  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .text         00007ae0  000000000040001c  000000000040001c  
0000601c  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE

    ...skipping a bit...

  8 .sbss         00000010  0000000000801cc8  0000000000801cc8  
0000fcc8  2**2
                  ALLOC
  9 .bss          00000120  0000000000801ce0  0000000000801ce0  
0000fcd0  2**4
                  ALLOC

    ...skipping some more...

 17 CSTACKS       00020000  0000000000fd0000  0000000000fd0000  
00010000  2**2
                  CONTENTS, ALLOC, LOAD, DATA


thanks,

-jack


Alan Modra wrote:

>On Fri, Oct 19, 2001 at 06:22:08PM -0700, Jack Tihon wrote:
>
>>I seem to have problems with the "NOLOAD" language construct in an ld 
>>script. The script works with binutils-2.10, but not with 2.11.2.
>>
>
>readelf doesn't give enough detail to know whether you really have
>lost "NOLOAD".  What does "objdump -h" show you?
>


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