[Bug c/60622] [4.9 Regression] symbol missing when compiled with -flto

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 23 07:41:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60622

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
BTW you can also use the following switch to display more info:

 % readelf -SW test.o
There are 16 section headers, starting at offset 0x5a0:

Section Headers:
  [Nr] Name              Type            Address          Off    Size   ES Flg
Lk Inf Al
  [ 0]                   NULL            0000000000000000 000000 000000 00     
0   0  0
  [ 1] .text             PROGBITS        0000000000000000 000040 000000 00  AX 
0   0  1
  [ 2] .data             PROGBITS        0000000000000000 000040 000000 00  WA 
0   0  1
  [ 3] .bss              NOBITS          0000000000000000 000040 000000 00  WA 
0   0  1
  [ 4] .gnu.lto_.inline.7470c5c6dcce8093 PROGBITS        0000000000000000
000040 00001f 00   E  0   0  1
  [ 5] .gnu.lto_foo.7470c5c6dcce8093 PROGBITS        0000000000000000 00005f
000120 00   E  0   0  1
  [ 6] .gnu.lto_.symbol_nodes.7470c5c6dcce8093 PROGBITS        0000000000000000
00017f 000025 00   E  0   0  1
  [ 7] .gnu.lto_.refs.7470c5c6dcce8093 PROGBITS        0000000000000000 0001a4
000014 00   E  0   0  1
  [ 8] .gnu.lto_.decls.7470c5c6dcce8093 PROGBITS        0000000000000000 0001b8
000229 00   E  0   0  1
  [ 9] .gnu.lto_.symtab.7470c5c6dcce8093 PROGBITS        0000000000000000
0003e1 000026 00   E  0   0  1
  [10] .gnu.lto_.opts    PROGBITS        0000000000000000 000407 00004d 00   E 
0   0  1
  [11] .comment          PROGBITS        0000000000000000 000454 00002a 01  MS 
0   0  1
  [12] .note.GNU-stack   PROGBITS        0000000000000000 00047e 000000 00     
0   0  1
  [13] .shstrtab         STRTAB          0000000000000000 00047e 00011f 00     
0   0  1
  [14] .symtab           SYMTAB          0000000000000000 0009a0 000180 18    
15  14  8
  [15] .strtab           STRTAB          0000000000000000 000b20 000024 00     
0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings), l (large)
  I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)



More information about the Gcc-bugs mailing list