🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #324

Producing position independant code ...

#324
From: Tim Conrow
Date: Mon, 31 Aug 1992 20:09
20 lines
1122 bytes
A question for a friend:

Can one create position independant code with gcc version 1.39?
If so, how? If not, will the newer, beta release (2.2.2?) do the
job?

Specifically, what we need to do is create a runtime loadable library
in SUN OS. With the SUN C compiler it would be done like this:

cc -O2 -pic (SOURCE MODULES)
ld -o libxxx.so.1.0 -assert pure-text (OBJECT MODULES)

How can we perform the first step with gcc in such a way that the 2nd
step works correctly? When we try it with gcc now, we get errors.

Please reply to nick@ipac.caltech.edu

Thanks for any help.

-- Tim
Technical Details
Message-ID: <TIM.92Aug31120942@nijinsky.ipac.caltech.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!nntp-server.caltech.edu!tim

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!news.claremont.edu!nntp-server.caltech.edu!nntp-server.caltech.edu!tim
From: tim@nijinsky.ipac.caltech.edu (Tim Conrow)
Newsgroups: gnu.gcc.help
Subject: Producing position independant code ...
Message-ID: <TIM.92Aug31120942@nijinsky.ipac.caltech.edu>
Date: 31 Aug 92 20:09:42 GMT
Sender: news@cco.caltech.edu
Distribution: gnu
Organization: California Institute of Technology
Lines: 20
Nntp-Posting-Host: nijinsky.ipac.caltech.edu