From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,31ec375a17bb6705,start X-Google-Attributes: gidfee84,public From: Robert Kerr Subject: Incremental Linking Date: 2000/02/10 Message-ID: #1/1 X-Deja-AN: 584240588 Organization: Sandia National Laboratories, Albuquerque, NM USA X-Sender: rakerr@sass2295 Content-Type: TEXT/PLAIN; charset=US-ASCII Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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 * **********************************************************************