0

I have read about name mangling and ELF file formats of object file. I would like to know which section/segment of ELF exactly, the mangled names are stored? .text or symbol table?

1 Answers1

0

Take a look here http://www.skyfree.org/linux/references/ELF_Format.pdf at page 1-8. The symbol table (.symtab section) will contain all the symbols which is basically an address and a name which is an offset into the .strtab section. You can find the exact structures in that ELF_Format.pdf. Also take a look at this question for some of the differences between the sections: String table in ELF

A nice tool to play around with the elf format is readelf: http://linux.die.net/man/1/readelf . I know that an executable of it is distributed with MinGW

Community
  • 1
  • 1
ThePosey
  • 2,734
  • 2
  • 19
  • 20