Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: /WB/ <WB@slashwb.org>
Subject: Re: Incremental Linking
Date: 2000/02/11	[thread overview]
Message-ID: <38A3B590.CD2541DD@slashwb.org> (raw)
In-Reply-To: Pine.GSO.3.96.1000210130051.27902T-100000@sass2295

If you look at the man page it shows you need to specify the file name
after the -A ie:

cxx -blah -blah -blah -A Old_a.out ObjFile.o


But then I may be wrong...


Robert Kerr wrote:
> 
> Hi all,
> I have been trying to determine if Tru64 Unix 5.0 has incremental linking.
> The ld man page gives -A as the closest thing I can find to the idea, but
> I can't seem to get it to work right.  So, can someone tell me if this is
> really what I want?  and if so, why is it not working?
> 
> Here's the relevant man page section:
> 
> -A file
>       Perform incremental loading, that is, do linking in a way that
> allows the resulting object to be read into an already executing program.
> The argument, file, is the name of a file whose symbol table will be
> taken as a basis on which to define additional symbols.  Only newly linked
> material will be entered into the text and data portions of a.out,
> but the new symbol table will reflect every symbol defined before and
> after the incremental load. This argument must appear before any other
> object file in the argument list. The -T option can be used as well and
> will be taken to mean that the newly linked segment will commence at the
>  corresponding address (which must be a correct multiple for the
>  resulting object type). The default resulting object type is an
> OMAGIC file, and the default starting address of the text is the old value
> of _end rounded to SCNROUND as defined in the include file <scnhdr.h>.
>  Using the defaults, when this file is read into an already executing
>  program, the initial value of the program break (see brk(2)) must
> also be rounded.
> 
> and here's the error message I get:
> 
> cxx -A -gall -msg_disable ptroutbasobj -msg_disable idxoutrange
> -msg_disable nosimpint -msg_disable codeunreachable -msg_disable
> labelnotreach -msg_disable codcauunr -msg_disable narrowptr -msg_disable
> nullref -msg_disable initnotreach -msg_disable uninit2 -x cxx -ptr
> cxx_repository -ptr geom/ACIS/cxx_repository -ptr
> geom/virtual/cxx_repository -ptr geom/cxx_repository ./AAllocMemManagers.o
> ./AAllocMemManagersB.o ............
> ld (prelink):
> -A: must precede all other object files
> ld: Usage: ld [options] file [...]
> ld:
> -A: must precede all other object files
> ld: Usage: ld [options] file [...]
> 
> Thanks
> 
> -bob
> 
> Oregano, noun:     The ancient Italian art of pizza folding.
> **********************************************************************
> * Robert Kerr, The morphing guy.  *    MS 0847 Sandia National Labs  *
> * rakerr@sandia.gov               *    Albuquerque NM 87185-0847     *
> * Robert_Kerr@byu.edu             *      Phone: (505) 844-8606       *
> * http://www.et.byu.edu/~kerrr    *      Fax: (505) 844-9297         *
> **********************************************************************



      reply	other threads:[~2000-02-11  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-10  5:00 Incremental Linking Robert Kerr
2000-02-11  5:00 ` /WB/ [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox