home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / bsd / 11881 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.1 KB

  1. Path: sparky!uunet!ogicse!news.u.washington.edu!serval!hlu
  2. From: hlu@eecs.wsu.edu (H.J. Lu)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: [386BSD] gcc2 and -fPIC
  5. Message-ID: <1993Jan26.210430.27806@serval.net.wsu.edu>
  6. Date: 26 Jan 93 21:04:30 GMT
  7. Article-I.D.: serval.1993Jan26.210430.27806
  8. References: <CGD.93Jan25211237@eden.CS.Berkeley.EDU>
  9. Sender: news@serval.net.wsu.edu (USENET News System)
  10. Organization: School of EECS, Washington State University
  11. Lines: 18
  12.  
  13. In article <CGD.93Jan25211237@eden.CS.Berkeley.EDU>, cgd@eden.CS.Berkeley.EDU (Chris G. Demetriou) writes:
  14. |> anybody gotten code compiled w/gcc2's -fPIC to assemble properly
  15. |> (or "at all") under 386bsd?
  16. |> 
  17. |> if so, could you tell me what i'm doing wrong?
  18. |> 
  19. |> gcc -c -fPIC -O foo.c
  20. |> just won't do it for me... 8-)
  21. |> 
  22.  
  23. That is because as on bsd doesn't support PIC yet. That leads to another
  24. question. I believe a.out format is not very good for PIC even with some
  25. patches. Personally, I prefer ELF. The problem is gnu binutils 2.x and
  26. gas do not fully support ELF. I was wondering if anyone has done something
  27. on ELF?
  28.  
  29.  
  30. H.J.
  31.