Thread: Map File
View Single Post
Old Jan 31st, 2007, 1: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