home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!col.hp.com!hpfcbig.sde.hp.com!mjs
- From: mjs@fc.hp.com (Marc Sabatella)
- Newsgroups: comp.sys.hp
- Subject: Re: Dynamic Linking to running executable
- Date: 12 Jan 1993 23:46:27 GMT
- Organization: Hewlett-Packard Company
- Lines: 21
- Message-ID: <1ivl8jINN858@hpfcbig.sde.hp.com>
- References: <C0rHnL.G9u@jabba.ess.harris.com>
- Reply-To: marc@hpmonk.fc.hp.com
- NNTP-Posting-Host: hptrane.fc.hp.com
- X-Newsreader: TIN [version 1.1.4 PL6]
-
- Mike McDonald (mac@mercury.Harris-ATD.com) wrote:
- : Does anyone have any ideas on how to link in a C .o to a running program?
-
- The easiest way is to compile that source into position independent code with
- "cc +z", build it into a shared library with "ld -b", and then load it with
- shl_load(3X). The brute force "ld -A" method from BSD4.3 can be used on HP-UX,
- but it is rather grungy (particularly on PA-RISC - the 700/800 series). Both
- methods are documented in the "Programming On HP-UX" manual (B2355-90026).
-
- --
- Marc Sabatella
- marc@hpmonk.fc.hp.com
- --
- Amendment 2 Is Legalized Discrimination - Shame On You, Colorado
- --
- "Neither the State of Colorado ... nor any of its municipalities ... shall ...
- enforce any ... ordinance ... whereby homosexual, lesbian, or bisexual
- orientation ... shall ... be the basis of ... any ... claim of discrimination"
- --
- All opinions expressed herein are my personal ones
- and do not necessarily reflect those of HP or anyone else.
-