Skip to content
Advertisement

Tag: object-files

Windows Executable file structure

I know that generally the object file has code, data, heap and stack sections. But I want to know how this is arranged in windows executables and Linux executables. I searched on internet and found some structure. I understood .text is for code and .data is for global variables. I want to know here is the stack and heap in

How to view symbols in object files?

How can I view symbols in a .o file? nm does not work for me. I use g++/linux. Answer Instead of nm, you can use the powerful objdump. See the man page for details. Try objdump -t myfile or objdump -T myfile. With the -C flag you can also demangle C++ names, like nm does.

Advertisement