How to force GCC to include the .symtab section for ELF executables/shared libraries? I have already tried using -static and -ggdb but it didn't work.
EDIT: readelf -l yields the following:
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
readelfinstead ofobjdumpfor example - Michael Petch-Swithreadelf. And to decodesymtabuse-Ss- Michael Petch