Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!cornell!uw-beaver!rice!sun-spots-request From: devil@TECHUNIX.BITNET (Gil Tene Gil Raz) Newsgroups: comp.sys.sun Subject: Incremental loading problems with SunOS 4.0 Message-ID: <8811171413.AA19008@techunix.bitnet> Date: 1 Dec 88 09:19:20 GMT Sender: usenet@rice.edu Organization: Rice University, Houston, Texas Lines: 27 Approved: Sun-Spots@rice.edu Original-Date: Thu, 17 Nov 88 16:13:07 +0200 X-Sun-Spots-Digest: Volume 7, Issue 31, message 1 of 19 "Dynamic, or Incremental loading on SunOS 4.0 question" : I have been using incremental loading (ld's -A option) for quite some time now, and had no problems with it up to version 4.0 of SunOS. When I recompile and load my code on 4.0, The code bombs when calling the dynamically loaded routine. Old executable code, compiled on 3.x machines, runs fine on 4.0, and does the incremental loading right. I assume the problem arrises from SunOS 4.0's addition of sharable libraries, since I can't find anything else to blame (the kernel MUST be fine, since it runs my 3.x compiled code). The real problem is that I cannot get rid of the dynamic loading for C programs. I tried using -Bstatic in the CC, and even explicitly doing the ld, but they both don't like it, and won't produce the executable. I pinpointed the problem to /lib/libc.a, This library (containin lots...) won't load right with -Bstatic specified. Does anyone out there have suggestions on how to load C programs without using 4.0 sharable library features. Or maybe someone has Incremental loading implemented on 4.0 in some other way... ? Thanks in advance. Gil Tene. devil@techunix.bitnet devil@tx.tech.ac.il Gil@noga.tech.ac.il