title: ELF - .symtab section
body: <p>How to force GCC to include the .symtab section for ELF executables/shared libraries? I have already tried using <strong>-static</strong> and <strong>-ggdb</strong> but it didn't work.</p>
  
  <p><strong>EDIT</strong>: <em>readelf -l</em> yields the following:</p>
  
  <pre><code> Section to Segment mapping:
   Segment Sections...
    00     
    01     .interp 
    02     .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame 
    03     .init_array .fini_array .dynamic .got .got.plt .data .bss 
    04     .dynamic 
    05     .note.ABI-tag .note.gnu.build-id 
    06     .eh_frame_hdr 
    07     
    08     .init_array .fini_array .dynamic .got 
  </code></pre>