comp.lang.ada
 help / color / mirror / Atom feed
From: Kirk Beitz <johndoe@world.std.com>
To: "Marin David Condic, 561.796.8997, M/S 731-93" <condicma@PWFL.COM>
Subject: Re: GNAT Linker Options & Memory Maps
Date: 1997/06/16
Date: 1997-06-16T00:00:00+00:00	[thread overview]
Message-ID: <33A5A6DD.7BA7@world.std.com> (raw)
In-Reply-To: dewar.866304123@merv


and to follow up on what robert says, the answer to your problem is
relatively straightforward (since he answered "YES" to your literal
question "Is there any way of using the linker ...?" but didn't really
tell you how):

using gnatmake as your tool to build with (which, after making sure that
all ada units in the dependency graph of your build are properly
compiled, will properly call  gnatbind and then the normal system
linker), simply use the -largs command to pass whatever arguments you
want to to the system linker.  this should be in TFM that you were
looking at, though perhaps not obvious.  just look for the help section
on gnatmake.

--Kirk

Robert Dewar wrote:
> 
> Marin asks
> 
> <<    There appears to be no way of controlling the link map using the
>     GNAT linker. (I did not recall seeing anything about an option to
>     even print out the link map.) Is there any way of using the linker
>     to control the addresses at which things fall? (Yes, I know Ada
>     gives you an address clause for fixing things in memory. However,
>     I have often failed to get the desired results using address
>     clauses and there are times when it would be much more handy to
>     use the linker to do this.)
> 
>     Also, I did not see any provisions for outputting a symbol table
>     or for specifying a load image format other than the default host
>     system format. (Motorola S-records, maybe?)
>  >>
> 
> There is no such thing as "the GNAT linker", GNAT uses one of the standard
> system linkers that are around, and has the capabilities you want if and
> only if this linker has these capabilities. It is also quite straightforward
> to change which linker you are using if necessary. But anyway, GNAT is using
> standard system capabilities. When it comes to linking, if C can do it, then
> so can GNAT.




      reply	other threads:[~1997-06-16  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-13  0:00 GNAT Linker Options & Memory Maps Marin David Condic, 561.796.8997, M/S 731-93
1997-06-14  0:00 ` Robert Dewar
1997-06-16  0:00   ` Kirk Beitz [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