From: Simon Wright <simon@pushface.org>
Subject: Re: generation of map files
Date: Fri, 17 Nov 2006 21:36:24 +0000
Date: 2006-11-17T21:36:24+00:00 [thread overview]
Message-ID: <m2ejs1bvs7.fsf@grendel.local> (raw)
In-Reply-To: uu00yjoc3.fsf@stephe-leake.org
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> benmidgley@googlemail.com writes:
>> I also tried
>>
>> gnatmake foo.adb -largs -Xlinker -Map,foo.map
>>
>> without any success
>
> try "gnatmake -v" to show the actual gcc command issued; what does it show?
Actually I think you need to put the -v after -largs if you want
gnatlink to see it; here,
grendel:~/tmp simon$ gnatmake -f -v foo.adb
GNATMAKE GPL 2006 (20060522-34)
Copyright 1995-2006, Free Software Foundation, Inc.
gcc -c foo.adb
End of compilation
gnatbind -x foo.ali
gnatlink foo.ali
grendel:~/tmp simon$ gnatmake -f foo.adb -largs -v
gcc -c foo.adb
gnatbind -x foo.ali
gnatlink foo.ali -v
GNATLINK GPL 2006 (20060522-34)
Copyright 1995-2006, Free Software Foundation, Inc
gcc -c -gnatA -gnatWb -gnatiw -gnatws b~foo.adb
/opt/gnat-gpl-2006/bin/gcc b~foo.o ./foo.o -o foo -L./ -L/opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/ /opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/libgnarl.a /opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/libgnat.a -static-libgcc
grendel:~/tmp simon$ gnatmake -f foo.adb -largs -Wl,-v
gcc -c foo.adb
gnatbind -x foo.ali
gnatlink foo.ali -Wl,-v
collect2 version 3.4.6 for GNAT GPL 2006 (20060522) (Darwin/PowerPC)
/usr/bin/ld -arch ppc -dynamic -o foo -lcrt1.o -lcrt2.o -L./ -L/opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/ -L/opt/gnat-gpl-2006/bin/../lib/gcc/powerpc-apple-darwin7.4.1/3.4.6 -L/opt/gnat-gpl-2006/bin/../lib/gcc -L/opt/gnat-gpl-2006/bin/../lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/../../.. b~foo.o ./foo.o -v /opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/libgnarl.a /opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/libgnat.a -lgcc -lgcc_eh -lSystem -lmx
Apple Computer, Inc. version cctools-590.23.2.obj~17
-largs -Xlinker -v gives the same result as -largs -Wl,-v
If you want a map, I think you need whatever your system's ld needs;
here, it would be -Wl,-M.
prev parent reply other threads:[~2006-11-17 21:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-15 12:21 generation of map files benmidgley
2006-11-15 18:25 ` Andre
2006-11-16 14:41 ` benmidgley
2006-11-17 11:37 ` Stephen Leake
2006-11-17 21:36 ` Simon Wright [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox