[英]where in ELF file i can see the mangled names in c++
I have read about name mangling and ELF file formats of object file. 我已经阅读了有关目标文件的名称处理和ELF文件格式的信息。 I would like to know which section/segment of ELF exactly, the mangled names are stored? 我想确切知道ELF的哪个部分/段,存储的名称错误? .text or symbol table? .text或符号表?
Take a look here http://www.skyfree.org/linux/references/ELF_Format.pdf at page 1-8. 在这里第1-8页查看http://www.skyfree.org/linux/references/ELF_Format.pdf 。 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. 符号表( .symtab
节)将包含所有符号,这些符号基本上是地址,而名称是.strtab
节的偏移量。 You can find the exact structures in that ELF_Format.pdf. 您可以在该ELF_Format.pdf中找到确切的结构。 Also take a look at this question for some of the differences between the sections: String table in ELF 还请看一下这个问题,了解各节之间的一些区别: ELF中的字符串表
A nice tool to play around with the elf format is readelf
: http://linux.die.net/man/1/readelf . readelf
是readelf
使用elf格式的不错的工具: http : readelf
。 I know that an executable of it is distributed with MinGW 我知道它的可执行文件与MinGW一起分发
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.