bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/5149] PT_GNU_RELRO having PF_R|PF_E even when no section in it n


From: oliver at linux-kernel dot at
Subject: [Bug ld/5149] PT_GNU_RELRO having PF_R|PF_E even when no section in it needs exec is a ld bug
Date: 23 Oct 2007 14:25:53 -0000

------- Additional Comments From oliver at linux-kernel dot at  2007-10-23 
14:25 -------
I rebuilt binutils with your patch and elfutils still complains:
address@hidden elfutils-0.130]$ eu-readelf -Sl libelf/libelf.so
There are 37 section headers, starting at offset 0xd0ad0:

Section Headers:
[Nr] Name                 Type         Addr             Off      Size     ES
Flags Lk Inf Al
[ 0]                      NULL         0000000000000000 00000000 00000000  0   
    0   0  0
[ 1] .note.gnu.build-id   NOTE         00000000000001c8 000001c8 00000024  0 A 
    0   0  4
[ 2] .gnu.hash            GNU_HASH     00000000000001f0 000001f0 00000560  0 A 
    3   0  8
[ 3] .dynsym              DYNSYM       0000000000000750 00000750 00000de0 24 A 
    4   1  8
[ 4] .dynstr              STRTAB       0000000000001530 00001530 0000073b  0 A 
    0   0  1
[ 5] .gnu.version         GNU_versym   0000000000001c6c 00001c6c 00000128  2 A 
    3   0  2
[ 6] .gnu.version_d       GNU_verdef   0000000000001d98 00001d98 000000c0  0 A 
    4   6  8
[ 7] .gnu.version_r       GNU_verneed  0000000000001e58 00001e58 00000050  0 A 
    4   1  8
[ 8] .rela.dyn            RELA         0000000000001ea8 00001ea8 00000558 24 A 
    3   0  8
[ 9] .rela.plt            RELA         0000000000002400 00002400 00000330 24 A 
    3  21  8
[10] .init                PROGBITS     0000000000002730 00002730 00000068  0 AX
    0   0  8
[11] .text                PROGBITS     00000000000027a0 000027a0 000223e0  0 AX
    0   0 16
[12] .fini                PROGBITS     0000000000024b80 00024b80 00000040  0 AX
    0   0  8
[13] .rodata              PROGBITS     0000000000024bc0 00024bc0 00001793  0 A 
    0   0  8
[14] .eh_frame_hdr        PROGBITS     0000000000026354 00026354 0000057c  0 A 
    0   0  4
[15] .eh_frame            PROGBITS     00000000000268d0 000268d0 0000161c  0 A 
    0   0  8
[16] .ctors               PROGBITS     0000000000039c98 00029c98 00000010  0 WA
    0   0  8
[17] .dtors               PROGBITS     0000000000039ca8 00029ca8 00000010  0 WA
    0   0  8
[18] .jcr                 PROGBITS     0000000000039cb8 00029cb8 00000008  0 WA
    0   0  8
[19] .data.rel.ro         PROGBITS     0000000000039cc0 00029cc0 00000190  0 WA
    0   0  8
[20] .dynamic             DYNAMIC      0000000000039e50 00029e50 000001b0 16 WA
    4   0  8
[21] .plt                 PROGBITS     000000000003a000 0002a000 000001b8  0 WAX
   0   0 16
[22] .got                 PROGBITS     000000000003a1b8 0002a1b8 00000140  0 WA
    0   0  8
[23] .sdata               PROGBITS     000000000003a2f8 0002a2f8 000000a8  0 WA
    0   0  8
[24] .sbss                NOBITS       000000000003a3a0 0002a3a0 00000030  0 WA
    0   0  8
[25] .comment             PROGBITS     0000000000000000 0002a3a0 00001456  0   
    0   0  1
[26] .debug_aranges       PROGBITS     0000000000000000 0002b7f6 00001470  0   
    0   0  1
[27] .debug_pubnames      PROGBITS     0000000000000000 0002cc66 00001083  0   
    0   0  1
[28] .debug_info          PROGBITS     0000000000000000 0002dce9 000827dc  0   
    0   0  1
[29] .debug_abbrev        PROGBITS     0000000000000000 000b04c5 0000b1b5  0   
    0   0  1
[30] .debug_line          PROGBITS     0000000000000000 000bb67a 00007f38  0   
    0   0  1
[31] .debug_frame         PROGBITS     0000000000000000 000c35b8 00002a18  0   
    0   0  8
[32] .debug_str           PROGBITS     0000000000000000 000c5fd0 0000665c  0   
    0   0  1
[33] .debug_loc           PROGBITS     0000000000000000 000cc62c 00004339  0   
    0   0  1
[34] .shstrtab            STRTAB       0000000000000000 000d0965 00000165  0   
    0   0  1
[35] .symtab              SYMTAB       0000000000000000 000d1410 000027f0 24   
   36 279  8
[36] .strtab              STRTAB       0000000000000000 000d3c00 000016d1  0   
    0   0  1

Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz
  Flg Align
  LOAD           0x000000 0x0000000000000000 0x0000000000000000 0x027eec
0x027eec R E 0x10000
  LOAD           0x029c98 0x0000000000039c98 0x0000000000039c98 0x000708
0x000738 RWE 0x10000
  DYNAMIC        0x029e50 0x0000000000039e50 0x0000000000039e50 0x0001b0
0x0001b0 RW  0x8
  NOTE           0x0001c8 0x00000000000001c8 0x00000000000001c8 0x000024
0x000024 R   0x4
  GNU_EH_FRAME   0x026354 0x0000000000026354 0x0000000000026354 0x00057c
0x00057c R   0x4
  GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000
0x000000 RW  0x8
  GNU_RELRO      0x029c98 0x0000000000039c98 0x0000000000039c98 0x000368
0x000368 R   0x1

 Section to Segment mapping:
  Segment Sections...
   00      [RO: .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version
.gnu.version_d .gnu.version_r .rela.dyn .rela.plt .init .text .fini .rodata
.eh_frame_hdr .eh_frame]
   01      [RELRO: .ctors .dtors .jcr .data.rel.ro .dynamic] .plt .got .sdata 
.sbss
   02      [RELRO: .dynamic]
   03      [RO: .note.gnu.build-id]
   04      [RO: .eh_frame_hdr]
   05     
   06      [RELRO: .ctors .dtors .jcr .data.rel.ro .dynamic]


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5149

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]