home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / gcc / help / 2020 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.1 KB

  1. 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
  2. From: tim@nijinsky.ipac.caltech.edu (Tim Conrow)
  3. Newsgroups: gnu.gcc.help
  4. Subject: Producing position independant code ...
  5. Message-ID: <TIM.92Aug31120942@nijinsky.ipac.caltech.edu>
  6. Date: 31 Aug 92 20:09:42 GMT
  7. Sender: news@cco.caltech.edu
  8. Distribution: gnu
  9. Organization: California Institute of Technology
  10. Lines: 20
  11. Nntp-Posting-Host: nijinsky.ipac.caltech.edu
  12.  
  13. A question for a friend:
  14.  
  15. Can one create position independant code with gcc version 1.39?
  16. If so, how? If not, will the newer, beta release (2.2.2?) do the
  17. job?
  18.  
  19. Specifically, what we need to do is create a runtime loadable library
  20. in SUN OS. With the SUN C compiler it would be done like this:
  21.  
  22. cc -O2 -pic (SOURCE MODULES)
  23. ld -o libxxx.so.1.0 -assert pure-text (OBJECT MODULES)
  24.  
  25. How can we perform the first step with gcc in such a way that the 2nd
  26. step works correctly? When we try it with gcc now, we get errors.
  27.  
  28. Please reply to nick@ipac.caltech.edu
  29.  
  30. Thanks for any help.
  31.  
  32. -- Tim
  33.