From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3941ad115e7b9e14 X-Google-Attributes: gid103376,public From: Kirk Beitz Subject: Re: GNAT Linker Options & Memory Maps Date: 1997/06/16 Message-ID: <33A5A6DD.7BA7@world.std.com>#1/1 X-Deja-AN: 248898605 References: <97061310124788@psavax.pwfl.com> To: "Marin David Condic, 561.796.8997, M/S 731-93" Organization: Road Runner Reply-To: johndoe@world.std.com Newsgroups: comp.lang.ada Date: 1997-06-16T00:00:00+00:00 List-Id: 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.