home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-