rev 149 chapter05/12-gcc-native

thorsten fly_a320 at gmx.de
Mon Feb 7 03:48:34 PST 2005


Hello again,

building the rev149 system, within chapter 05/12-gcc-native all tests 
are as expected except this one, which misses the GNU_RELRO and 
PAX_FLAGS Headers:

Output of the readelf check:

lfs:/mnt/lfs/sources/gcc-build$ readelf -l test{,2} | grep -e ': /tools' 
-e 'Sha         -e 'GNU_RELRO' -e 'PAX_FLAGS'
Elf file type is DYN (Shared object file)
       [Requesting program interpreter: /tools/lib/ld-linux.so.2]
Elf file type is DYN (Shared object file)
       [Requesting program interpreter: /tools/lib/ld-linux.so.2]


for reference only: complete output of readelf -l for test and test2:

lfs:/mnt/lfs/sources/gcc-build$ readelf -l test
Elf file type is DYN (Shared object file)
Entry point 0x670
There are 8 program headers, starting at offset 52
Program Headers:
   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
   PHDR           0x000034 0x00000034 0x00000034 0x00100 0x00100 R E 0x4
   INTERP         0x000134 0x00000134 0x00000134 0x00019 0x00019 R   0x1
       [Requesting program interpreter: /tools/lib/ld-linux.so.2]
   LOAD           0x000000 0x00000000 0x00000000 0x00a08 0x00a08 R E 0x1000
   LOAD           0x000edc 0x00001edc 0x00001edc 0x00130 0x00134 RW  0x1000
   DYNAMIC        0x000ef0 0x00001ef0 0x00001ef0 0x000d8 0x000d8 RW  0x4
   NOTE           0x000150 0x00000150 0x00000150 0x00020 0x00020 R   0x4
   LOOS+474e551   0x000000 0x00000000 0x00000000 0x00000 0x00000 RW  0x4
   LOOS+474e552   0x000edc 0x00001edc 0x00001edc 0x00124 0x00124 R   0x1
  Section to Segment mapping:
   Segment Sections...
    00
    01     .interp
    02     .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version 
.gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .eh_frame
    03     .ctors .dtors .jcr .dynamic .got .data .bss
    04     .dynamic
    05     .note.ABI-tag
    06
    07     .ctors .dtors .jcr .dynamic .got





lfs:/mnt/lfs/sources/gcc-build$ readelf -l test2
Elf file type is DYN (Shared object file)
Entry point 0x730
There are 9 program headers, starting at offset 52
Program Headers:
   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
   PHDR           0x000034 0x00000034 0x00000034 0x00120 0x00120 R E 0x4
   INTERP         0x000154 0x00000154 0x00000154 0x00019 0x00019 R   0x1
       [Requesting program interpreter: /tools/lib/ld-linux.so.2]
   LOAD           0x000000 0x00000000 0x00000000 0x00b30 0x00b30 R E 0x1000
   LOAD           0x000ec4 0x00001ec4 0x00001ec4 0x0014c 0x00150 RW  0x1000
   DYNAMIC        0x000ed8 0x00001ed8 0x00001ed8 0x000f0 0x000f0 RW  0x4
   NOTE           0x000170 0x00000170 0x00000170 0x00020 0x00020 R   0x4
   GNU_EH_FRAME   0x000ae0 0x00000ae0 0x00000ae0 0x00014 0x00014 R   0x4
   LOOS+474e551   0x000000 0x00000000 0x00000000 0x00000 0x00000 RW  0x4
   LOOS+474e552   0x000ec4 0x00001ec4 0x00001ec4 0x0013c 0x0013c R   0x1
  Section to Segment mapping:
   Segment Sections...
    00
    01     .interp
    02     .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version 
.gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata 
.eh_frame_hdr .eh_frame
    03     .ctors .dtors .jcr .dynamic .got .data .bss
    04     .dynamic
    05     .note.ABI-tag
    06     .eh_frame_hdr
    07
    08     .ctors .dtors .jcr .dynamic .got

regards

Thorsten Happel



More information about the hlfs-dev mailing list