From: Robert Kerr <rakerr@sandia.gov>
Subject: Incremental Linking
Date: 2000/02/10 [thread overview]
Message-ID: <Pine.GSO.3.96.1000210130051.27902T-100000@sass2295> (raw)
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 *
**********************************************************************
next reply other threads:[~2000-02-10 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-10 5:00 Robert Kerr [this message]
2000-02-11 5:00 ` Incremental Linking /WB/
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