[Bug c++/56287] __do_global_ctors_aux() crashing when LTO enabled with flto-partition=none
honyakeprt at centrum dot cz
gcc-bugzilla@gcc.gnu.org
Mon Feb 11 15:48:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56287
--- Comment #2 from Jan Keprt <honyakeprt at centrum dot cz> 2013-02-11 15:48:01 UTC ---
(In reply to comment #1)
> Did the crt files somehow get LTO bytecode? That shouldn't happen. Please
> show objdump -h of the used crtbegin.o/crtend.o files.
Here it is:
$ ~/cross/bin/powerpc-unknown-eabi-objdump.exe -h crtbegin.o
crtbegin.o: file format elf32-powerpc
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000020 00000000 00000000 00000034 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000000 00000000 00000000 00000054 2**0
CONTENTS, ALLOC, LOAD, DATA
2 .bss 00000000 00000000 00000000 00000054 2**0
ALLOC
3 .gnu.lto_.jmpfuncs.60ec31b70d4f2ad9 00000110 00000000 00000000 00000054
2**0
CONTENTS, READONLY, EXCLUDE
4 .gnu.lto_.inline.60ec31b70d4f2ad9 0000006f 00000000 00000000 00000164
2*
*0
CONTENTS, READONLY, EXCLUDE
5 .gnu.lto_.pureconst.60ec31b70d4f2ad9 00000020 00000000 00000000 000001d3
2**0
CONTENTS, READONLY, EXCLUDE
6 .gnu.lto_deregister_tm_clones.60ec31b70d4f2ad9 00000260 00000000 00000000
000001f3 2**0
CONTENTS, READONLY, EXCLUDE
7 .gnu.lto_register_tm_clones.60ec31b70d4f2ad9 00000293 00000000 00000000
0
0000453 2**0
CONTENTS, READONLY, EXCLUDE
8 .gnu.lto___do_global_dtors_aux.60ec31b70d4f2ad9 000003c3 00000000
00000000
000006e6 2**0
CONTENTS, READONLY, EXCLUDE
9 .gnu.lto_call___do_global_dtors_aux.60ec31b70d4f2ad9 0000013c 00000000
000
00000 00000aa9 2**0
CONTENTS, READONLY, EXCLUDE
10 .gnu.lto_frame_dummy.60ec31b70d4f2ad9 00000285 00000000 00000000
00000be5
2**0
CONTENTS, READONLY, EXCLUDE
11 .gnu.lto_call_frame_dummy.60ec31b70d4f2ad9 0000013b 00000000 00000000
000
00e6a 2**0
CONTENTS, READONLY, EXCLUDE
12 .gnu.lto_.cgraph.60ec31b70d4f2ad9 000000a4 00000000 00000000 00000fa5
2*
*0
CONTENTS, READONLY, EXCLUDE
13 .gnu.lto_.vars.60ec31b70d4f2ad9 0000003f 00000000 00000000 00001049
2**0
CONTENTS, READONLY, EXCLUDE
14 .gnu.lto_.refs.60ec31b70d4f2ad9 00000037 00000000 00000000 00001088
2**0
CONTENTS, READONLY, EXCLUDE
15 .gnu.lto_.statics.60ec31b70d4f2ad9 00000014 00000000 00000000 000010bf
2
**0
CONTENTS, READONLY, EXCLUDE
16 .gnu.lto_.decls.60ec31b70d4f2ad9 00000bb0 00000000 00000000 000010d3
2**
0
CONTENTS, READONLY, EXCLUDE
17 .gnu.lto_.symtab.60ec31b70d4f2ad9 00000116 00000000 00000000 00001c83
2*
*0
CONTENTS, READONLY, EXCLUDE
18 .gnu.lto_.opts 0000018a 00000000 00000000 00001d99 2**0
CONTENTS, READONLY, EXCLUDE
19 .ctors 00000004 00000000 00000000 00001f24 2**2
CONTENTS, ALLOC, LOAD, DATA
20 .dtors 00000004 00000000 00000000 00001f28 2**2
CONTENTS, ALLOC, LOAD, DATA
21 .eh_frame 00000000 00000000 00000000 00001f2c 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
22 .jcr 00000000 00000000 00000000 00001f2c 2**2
CONTENTS, ALLOC, LOAD, DATA
23 .tm_clone_table 00000000 00000000 00000000 00001f2c 2**2
CONTENTS, ALLOC, LOAD, DATA
24 .text.deregister_tm_clones 00000038 00000000 00000000 00001f2c 2**2
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
25 .text.register_tm_clones 0000003c 00000000 00000000 00001f64 2**2
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
26 .data.__dso_handle 00000004 00000000 00000000 00001fa0 2**2
CONTENTS, ALLOC, LOAD, DATA
27 .text.__do_global_dtors_aux 000000c8 00000000 00000000 00001fa4 2**2
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
28 .text.call___do_global_dtors_aux 0000000c 00000000 00000000 0000206c
2**
2
CONTENTS, ALLOC, LOAD, READONLY, CODE
29 .fini 00000004 00000000 00000000 00002078 2**0
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
30 .text.frame_dummy 0000006c 00000000 00000000 0000207c 2**2
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
31 .text.call_frame_dummy 0000000c 00000000 00000000 000020e8 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
32 .init 00000004 00000000 00000000 000020f4 2**0
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
33 .bss.completed.3973 00000001 00000000 00000000 000020f8 2**0
ALLOC
34 .bss.dtor_idx.3975 00000004 00000000 00000000 000020f8 2**2
ALLOC
35 .bss.object.3988 00000018 00000000 00000000 000020f8 2**2
ALLOC
36 .comment 00000012 00000000 00000000 000020f8 2**0
CONTENTS, READONLY
$ ~/cross/bin/powerpc-unknown-eabi-objdump.exe -h crtend.o
crtend.o: file format elf32-powerpc
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000010 00000000 00000000 00000034 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000000 00000000 00000000 00000044 2**0
CONTENTS, ALLOC, LOAD, DATA
2 .bss 00000000 00000000 00000000 00000044 2**0
ALLOC
3 .gnu.lto_.jmpfuncs.f5543a1e693b4bff 0000001b 00000000 00000000 00000044
2**0
CONTENTS, READONLY, EXCLUDE
4 .gnu.lto_.inline.f5543a1e693b4bff 00000037 00000000 00000000 0000005f
2*
*0
CONTENTS, READONLY, EXCLUDE
5 .gnu.lto_.pureconst.f5543a1e693b4bff 00000018 00000000 00000000 00000096
2**0
CONTENTS, READONLY, EXCLUDE
6 .gnu.lto___do_global_ctors_aux.f5543a1e693b4bff 000001f9 00000000
00000000
000000ae 2**0
CONTENTS, READONLY, EXCLUDE
7 .gnu.lto_call___do_global_ctors_aux.f5543a1e693b4bff 0000013f 00000000
000
00000 000002a7 2**0
CONTENTS, READONLY, EXCLUDE
8 .gnu.lto_.cgraph.f5543a1e693b4bff 00000037 00000000 00000000 000003e6
2*
*0
CONTENTS, READONLY, EXCLUDE
9 .gnu.lto_.vars.f5543a1e693b4bff 0000002a 00000000 00000000 0000041d
2**0
CONTENTS, READONLY, EXCLUDE
10 .gnu.lto_.refs.f5543a1e693b4bff 00000018 00000000 00000000 00000447
2**0
CONTENTS, READONLY, EXCLUDE
11 .gnu.lto_.statics.f5543a1e693b4bff 00000014 00000000 00000000 0000045f
2
**0
CONTENTS, READONLY, EXCLUDE
12 .gnu.lto_.decls.f5543a1e693b4bff 000004ec 00000000 00000000 00000473
2**
0
CONTENTS, READONLY, EXCLUDE
13 .gnu.lto_.symtab.f5543a1e693b4bff 00000037 00000000 00000000 0000095f
2*
*0
CONTENTS, READONLY, EXCLUDE
14 .gnu.lto_.opts 0000018a 00000000 00000000 00000996 2**0
CONTENTS, READONLY, EXCLUDE
15 .ctors 00000004 00000000 00000000 00000b20 2**2
CONTENTS, ALLOC, LOAD, DATA
16 .dtors 00000004 00000000 00000000 00000b24 2**2
CONTENTS, ALLOC, LOAD, DATA
17 .eh_frame 00000004 00000000 00000000 00000b28 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
18 .jcr 00000004 00000000 00000000 00000b2c 2**2
CONTENTS, ALLOC, LOAD, DATA
19 .tm_clone_table 00000000 00000000 00000000 00000b30 2**2
CONTENTS, ALLOC, LOAD, DATA
20 .text.__do_global_ctors_aux 0000004c 00000000 00000000 00000b30 2**2
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
21 .text.call___do_global_ctors_aux 0000000c 00000000 00000000 00000b7c
2**
2
CONTENTS, ALLOC, LOAD, READONLY, CODE
22 .init 00000004 00000000 00000000 00000b88 2**0
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
23 .comment 00000012 00000000 00000000 00000b8c 2**0
CONTENTS, READONLY
More information about the Gcc-bugs
mailing list