This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: GCC testsuite run before and after ~2.12.1 upgraded to pre-2.13
On Sat, Jul 20, 2002 at 09:53:39AM +0930, Alan Modra wrote:
> That's interesting. Perhaps "readelf -S" on a bad binary might show
> something.
Here's one from my Alpha system:
There are 38 section headers, starting at offset 0x200610:
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .interp PROGBITS 00000001200001c8 000001c8
0000000000000017 0000000000000000 A 0 0 1
[ 2] .note.netbsd.iden NOTE 00000001200001e0 000001e0
0000000000000018 0000000000000000 A 0 0 4
[ 3] .hash HASH 00000001200001f8 000001f8
0000000000000660 0000000000000008 A 4 0 8
[ 4] .dynsym DYNSYM 0000000120000858 00000858
0000000000000690 0000000000000018 A 5 1 8
[ 5] .dynstr STRTAB 0000000120000ee8 00000ee8
0000000000000267 0000000000000000 A 0 0 1
[ 6] .rela.dyn RELA 0000000120001150 00001150
0000000000000090 0000000000000018 A 4 0 8
[ 7] .rela.plt RELA 00000001200011e0 000011e0
0000000000000468 0000000000000018 A 4 14 8
[ 8] .init PROGBITS 0000000120001660 00001660
0000000000000170 0000000000000000 AX 0 0 32
[ 9] .text PROGBITS 00000001200017e0 000017e0
0000000000038f60 0000000000000000 AX 0 0 32
[10] .fini PROGBITS 000000012003a740 0003a740
00000000000000d0 0000000000000000 AX 0 0 32
[11] .rodata PROGBITS 000000012003a810 0003a810
0000000000002d60 0000000000000000 WA 0 0 8
[12] .eh_frame_hdr PROGBITS 000000012003d570 0003d570
000000000000167c 0000000000000000 A 0 0 4
[13] .data PROGBITS 0000000120040000 00040000
0000000000000070 0000000000000000 WA 0 0 8
[14] .eh_frame PROGBITS 0000000120040070 00040070
0000000000006514 0000000000000000 WA 0 0 8
[15] .gcc_except_table PROGBITS 0000000120046584 00046584
00000000000019bc 0000000000000000 WA 0 0 4
[16] .dynamic DYNAMIC 0000000120047f40 00047f40
0000000000000170 0000000000000010 WA 5 0 8
[17] .ctors PROGBITS 00000001200480b0 000480b0
0000000000000030 0000000000000000 WA 0 0 8
[18] .dtors PROGBITS 00000001200480e0 000480e0
0000000000000020 0000000000000000 WA 0 0 8
[19] .jcr PROGBITS 0000000120048100 00048100
0000000000000008 0000000000000000 WA 0 0 8
[20] .plt PROGBITS 0000000120048108 00048108
0000000000000254 0000000000000020 WAX 0 0 8
[21] .got PROGBITS 0000000120048360 00048360
0000000000001210 0000000000000000 WA 0 0 8
[22] .sdata PROGBITS 0000000120049570 00049570
00000000000001af 0000000000000000 WAp 0 0 8
[23] .sbss NOBITS 0000000120049720 00049720
0000000000000148 0000000000000000 WAp 0 0 8
[24] .bss NOBITS 0000000120049870 00049728
0000000000001e70 0000000000000000 WA 0 0 16
[25] .comment PROGBITS 0000000000000000 00049728
00000000000006d9 0000000000000000 0 0 1
[26] .debug_aranges PROGBITS 0000000000000000 00049e01
00000000000049a0 0000000000000000 0 0 1
[27] .debug_pubnames PROGBITS 0000000000000000 0004e7a1
000000000001252c 0000000000000000 0 0 1
[28] .debug_info PROGBITS 0000000000000000 00060ccd
000000000013af61 0000000000000000 0 0 1
[29] .debug_abbrev PROGBITS 0000000000000000 0019bc2e
000000000000d492 0000000000000000 0 0 1
[30] .debug_line PROGBITS 0000000000000000 001a90c0
000000000002707c 0000000000000000 0 0 1
[31] .debug_frame PROGBITS 0000000000000000 001d0140
0000000000009a20 0000000000000000 0 0 8
[32] .debug_str PROGBITS 0000000000000000 001d9b60
0000000000024f43 0000000000000001 MS 0 0 1
[33] .ident PROGBITS 0000000000000000 001feaa3
0000000000000039 0000000000000000 0 0 1
[34] .debug_ranges PROGBITS 0000000000000000 001feadc
00000000000019e0 0000000000000000 0 0 1
[35] .shstrtab STRTAB 0000000000000000 002004bc
0000000000000151 0000000000000000 0 0 1
[36] .symtab SYMTAB 0000000000000000 00200f90
0000000000009ca8 0000000000000018 37 9b 8
[37] .strtab STRTAB 0000000000000000 0020ac38
000000000000e97b 0000000000000000 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
Note the .rodata section:
[11] .rodata PROGBITS 000000012003a810 0003a810
0000000000002d60 0000000000000000 WA 0 0 8
It certainly doesn't seem correct that .rodata is getting "WRITE" set.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>