https://bugzilla.novell.com/show_bug.cgi?id=438103
User jblunck@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=438103#c2
--- Comment #2 from Jan Blunck 2008-10-23 03:57:12 MDT ---
This is the crtend.o from the gcc build with -funwind-tables and
-fasynchronous-unwind-tables:
# readelf -S
/abuild/jblunck-head-i586//usr/lib/gcc/i586-suse-linux/4.3/crtend.o
There are 17 section headers, starting at offset 0x178:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf
Al
[ 0] NULL 00000000 000000 000000 00 0 0
0
[ 1] .text PROGBITS 00000000 000040 00002a 00 AX 0 0
16
[ 2] .rel.text REL 00000000 000588 000010 08 15 1
4
[ 3] .data PROGBITS 00000000 00006c 000000 00 WA 0 0
4
[ 4] .bss NOBITS 00000000 00006c 000000 00 WA 0 0
4
[ 5] .ctors PROGBITS 00000000 00006c 000004 00 WA 0 0
4
[ 6] .dtors PROGBITS 00000000 000070 000004 00 WA 0 0
4
[ 7] .eh_frame PROGBITS 00000000 000074 000034 00 A 0 0
4
[ 8] .rel.eh_frame REL 00000000 000598 000008 08 15 7
4
[ 9] .jcr PROGBITS 00000000 0000a8 000004 00 WA 0 0
4
[10] .init PROGBITS 00000000 0000ac 000005 00 AX 0 0
1
[11] .rel.init REL 00000000 0005a0 000008 08 15 10
4
[12] .comment PROGBITS 00000000 0000b1 000050 00 0 0
1
[13] .note.GNU-stack PROGBITS 00000000 000101 000000 00 0 0
1
[14] .shstrtab STRTAB 00000000 000101 000074 00 0 0
1
[15] .symtab SYMTAB 00000000 000420 000110 10 16 16
4
[16] .strtab STRTAB 00000000 000530 000056 00 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)
Interesting is that on x86_64 where the ABI enforces -funwind-tables, the
crtend.o has an empty .eh_frame:
jblunck@e179:~$ readelf -S /usr/lib64/gcc/x86_64-suse-linux/4.3/crtend.o
There are 16 section headers, starting at offset 0x160:
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .text PROGBITS 0000000000000000 00000040
0000000000000036 0000000000000000 AX 0 0 16
[ 2] .rela.text RELA 0000000000000000 00000750
0000000000000030 0000000000000018 14 1 8
[ 3] .data PROGBITS 0000000000000000 00000078
0000000000000000 0000000000000000 WA 0 0 4
[ 4] .bss NOBITS 0000000000000000 00000078
0000000000000000 0000000000000000 WA 0 0 4
[ 5] .ctors PROGBITS 0000000000000000 00000078
0000000000000008 0000000000000000 WA 0 0 8
[ 6] .dtors PROGBITS 0000000000000000 00000080
0000000000000008 0000000000000000 WA 0 0 8
[ 7] .eh_frame PROGBITS 0000000000000000 00000088
0000000000000004 0000000000000000 A 0 0 4
[ 8] .jcr PROGBITS 0000000000000000 00000090
0000000000000008 0000000000000000 WA 0 0 8
[ 9] .init PROGBITS 0000000000000000 00000098
0000000000000005 0000000000000000 AX 0 0 1
[10] .rela.init RELA 0000000000000000 00000780
0000000000000018 0000000000000018 14 9 8
[11] .comment PROGBITS 0000000000000000 0000009d
0000000000000050 0000000000000000 0 0 1
[12] .note.GNU-stack PROGBITS 0000000000000000 000000ed
0000000000000000 0000000000000000 0 0 1
[13] .shstrtab STRTAB 0000000000000000 000000ed
0000000000000072 0000000000000000 0 0 1
[14] .symtab SYMTAB 0000000000000000 00000560
0000000000000198 0000000000000018 15 16 8
[15] .strtab STRTAB 0000000000000000 000006f8
0000000000000056 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)
Seems strange but is it possible that the relocation in crtend.o is broken?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.