Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 30th, 2007, 12:35 AM   #1
shouvik
Newbie
 
shouvik's Avatar
 
Join Date: Jan 2007
Posts: 16
Rep Power: 0 shouvik is an unknown quantity at this point
Map File

how to generate a map file in GCC.
please help
__________________
Thanks and Regards
Shouvik
shouvik is offline   Reply With Quote
Old Jan 30th, 2007, 8:24 AM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Old Jan 30th, 2007, 8:29 AM   #3
shouvik
Newbie
 
shouvik's Avatar
 
Join Date: Jan 2007
Posts: 16
Rep Power: 0 shouvik is an unknown quantity at this point
Quote:
I am under the impression that English is not your native language.
well if you presume things at once you might go wrong as well.

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
shouvik is offline   Reply With Quote
Old Jan 31st, 2007, 12:27 AM   #4
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
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
I hope it was what you needed!
__________________
-- v0id
v0id is offline   Reply With Quote
Old Jan 31st, 2007, 12:30 AM   #5
shouvik
Newbie
 
shouvik's Avatar
 
Join Date: Jan 2007
Posts: 16
Rep Power: 0 shouvik is an unknown quantity at this point
yeah exactly that's what i used. But i needed them name mangles which were missing in the map file
__________________
Thanks and Regards
Shouvik
shouvik is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OnlineTextEditor.Com! Sane Show Off Your Open Source Projects 43 Jun 16th, 2006 8:55 AM
add mutiple users to the smbpasswd file. Pizentios Bash / Shell Scripting 3 Oct 20th, 2005 12:48 PM
After execution - Error cannot locate /Skin File? wchar Visual Basic 1 Mar 5th, 2005 9:04 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM
Structure char field to a disk file ehab_aziz2001 C++ 0 Feb 10th, 2005 2:42 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:20 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC