home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14798 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.4 KB

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