🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #9657

Re: loading problems with SunOS4.0

#9657
From: Paul Quare
Date: Thu, 15 Dec 1988 07:03
28 lines
1717 bytes
Here is some information on problems I encountered when trying to link
(occam) object files produced from a Transputer Development System (TDS)
with 4.0 C object files.(This is basically the note I've passed on to Sun)
I was trying to build a static version of the required program, (using
-Bstatic etc)

By experiment,I have discovered that the omission of "-e start " from the
ld options has a surprising effect!This flag is a default under 3.X but if
omitted under 4.0 seems to cause ld:

	a) to make the output dynamically bound
	b) to not set up an entry point 

To reproduce this do

	cc -dryrun anything.c
	cc -dryrun -Bstatic anything.c

on 3.5/4.0 systems.  This shows the commands that cc generates - then try
using the ld line on an anything.o file,with and without the -e start
under 3.5/4.0(+.-Bstatic).  There is no reference to this (change in)
behaviour in the man page and I cannot find it elsewhere,e.g. in
Programming Utilities and Libraries.(4.0) (There is a comment on page 55
of that manual - halfway down - NOTE)

Paul Quare
Dept Computer Science,Manchester University,U.K.
pq@r2.cs.man.ac.uk
Technical Details
Message-ID: <22921.8812051656@r2.cs.man.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: pq%research2.computer-science.manchester.ac.uk@nss.cs.ucl.ac.uk (Paul Quare)
Newsgroups: comp.sys.sun
Subject: Re: loading problems with SunOS4.0
Message-ID: <22921.8812051656@r2.cs.man.ac.uk>
Date: 15 Dec 88 07:03:56 GMT
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 27
Approved: Sun-Spots@rice.edu
Original-Date: Mon, 5 Dec 88 16:56:01 GMT
X-Sun-Spots-Digest: Volume 7, Issue 55, message 6 of 14
X-Issue-Reference: v7n31