From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,31ec375a17bb6705 X-Google-Attributes: gidfee84,public From: /WB/ Subject: Re: Incremental Linking Date: 2000/02/11 Message-ID: <38A3B590.CD2541DD@slashwb.org>#1/1 X-Deja-AN: 584447711 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@home.net X-Trace: news1.frmt1.sfba.home.com 950252945 24.11.133.229 (Thu, 10 Feb 2000 23:09:05 PST) Organization: Compaq MIME-Version: 1.0 Reply-To: WB@slashwb.org NNTP-Posting-Date: Thu, 10 Feb 2000 23:09:05 PST Newsgroups: comp.unix.osf.osf1 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 . > 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 * > **********************************************************************