954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Mangled Names

how to retrieve mangled names in GCC. any Idea:?:

shouvik.d
Junior Poster
198 posts since Jan 2007
Reputation Points: 64
Solved Threads: 7
 

executables normally do not contain symbols unless compiled for debug. But compilers will often create map files that contain the mangled names. Check your compiler's documentation to see if it has an option to generate a map file, most likely it does.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

I generated the map file with -Map option while compilation but it doesn't contain any mangled name. One way is using the object file and then using the command
nm -g --defined-only
but then if I get some stream reader sort of thing my job becomes easier.

shouvik.d
Junior Poster
198 posts since Jan 2007
Reputation Points: 64
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You