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]

ld script problems: tagging a section (NOLOAD)


Hi,

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.

Here's a snippet of salient information:

here's some code that tags the CSTACKS section NOLOAD.

CSTACKS (NOLOAD) : { *(CSTACKS) }


here's part of the  output of readelf -a from 2.11.2 (not working):

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg 
Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      
0   0  0
  [ 1] .init             PROGBITS        00400000 029000 00001c 00  AX  
0   0  1
  [ 2] .text             PROGBITS        0040001c 02901c 007980 00  AX  
0   0  4
  [ 3] .fini             PROGBITS        0040799c 03099c 00001c 00  AX  
0   0  1
  [ 4] .rodata           PROGBITS        004079b8 0309b8 0003c0 00   A  
0   0  8

    .....snipped....

 [19] CSTACKS           PROGBITS        00200000 009000 020000 00  WA  
0   0  4


And from 2.10 (working):

  [ 0]                   NULL            00000000 000000 000000 00       
0   0 0
  [ 1] _crt0_section     PROGBITS        00400000 029000 0000fc 00  AX   
0   0 1
  [ 2] .text             PROGBITS        004000fc 0290fc 008bb8 00  AX   
0   0 4
  [ 3] .rodata           PROGBITS        00408cb8 031cb8 0003b8 00   A   
0   0 8
  [ 4] .data             PROGBITS        00800000 033000 000734 00  WA   
0   0 8

  ....snipped.....

  [16] CSTACKS           NOBITS          00200000 009000 020000 00  WA   
0   0 4


Any ideas?

I'm running on a redhat-7.1 system. the config host triple is: 
i686-pc-linux-gnu
and the target triple is more or less a mipsel-elf target (with minor 
cosmetic changes)

thanks,

-jack



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