![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2007
Posts: 16
Rep Power: 0
![]() |
Map File
how to generate a map file in GCC.
please help
__________________
Thanks and Regards Shouvik |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() ![]() |
I am under the impression that English is not your native language.
Here is something found when I used -google- with "gcc mapfile" as keywords. "Map file is generally generated by linker. This specifies the memory map generated by linker. Generally map file does not have any specific format such as coff or elf .. It is a human readable file and the contents of this file are linker dependent. This file contains memory addresses and sizes of varios sections, section types(e.g. noload section etc). "
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#3 | |
|
Newbie
Join Date: Jan 2007
Posts: 16
Rep Power: 0
![]() |
Quote:
I did a li'l bit of homework before putting up this question here and I did get my map file generated. But unlike VC it contained no mangled name info as i required which icould only extract through the object file.
__________________
Thanks and Regards Shouvik |
|
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Apr 2006
Posts: 155
Rep Power: 3
![]() |
You've to use the parameter, -Wl, to direct the -Wl's arguments to the linker (ld). Then just use the simple -Map and then a filename for the mapfile.
gcc test.c -o test -Wl,-Map,testMap.map
__________________
-- v0id
|
|
|
|
|
|
#5 |
|
Newbie
Join Date: Jan 2007
Posts: 16
Rep Power: 0
![]() |
yeah exactly that's what i used. But i needed them name mangles which were missing in the map file
__________________
Thanks and Regards Shouvik |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OnlineTextEditor.Com! | Sane | Show Off Your Open Source Projects | 43 | Jun 16th, 2006 9:55 AM |
| add mutiple users to the smbpasswd file. | Pizentios | Bash / Shell Scripting | 3 | Oct 20th, 2005 1:48 PM |
| After execution - Error cannot locate /Skin File? | wchar | Visual Basic | 1 | Mar 5th, 2005 10:04 PM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 5:12 PM |
| Structure char field to a disk file | ehab_aziz2001 | C++ | 0 | Feb 10th, 2005 3:42 PM |