home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / bsd / 11926 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.6 KB  |  59 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!elroy.jpl.nasa.gov!jato!ufo!kaleb
  3. From: kaleb@jpl-devvax.jpl.nasa.gov (Kaleb Keithley)
  4. Subject: Re: [386BSD] gcc2 and -fPIC
  5. Message-ID: <1993Jan27.172321.14231@jpl-devvax.jpl.nasa.gov>
  6. Organization: Jet Propulsion Laboratory (NASA)
  7. References: <1993Jan26.210430.27806@serval.net.wsu.edu> <1993Jan27.002600.21136@jpl-devvax.jpl.nasa.gov> <1993Jan27.044627.2756@serval.net.wsu.edu>
  8. Date: Wed, 27 Jan 1993 17:23:21 GMT
  9. Lines: 48
  10.  
  11. In article  hlu@eecs.wsu.edu (H.J. Lu) writes:
  12. >In article  kaleb@jpl-devvax.jpl.nasa.gov (Kaleb Keithley) writes:
  13. >|> In article  hlu@eecs.wsu.edu (H.J. Lu) writes:
  14. >|> >In article  (Chris G. Demetriou) writes:
  15. >|> >|> anybody gotten code compiled w/gcc2's -fPIC to assemble properly
  16. >|> >|> (or "at all") under 386bsd?
  17. >|> >|> 
  18. >|> >That is because as on bsd doesn't support PIC yet. That leads to another
  19. >|> >question. I believe a.out format is not very good for PIC even with some
  20. >|> >patches. Personally, I prefer ELF. The problem is gnu binutils 2.x and
  21. >|> >gas do not fully support ELF. I was wondering if anyone has done something
  22. >|> >on ELF?
  23. >|> 
  24. >|> Huh?  a.out and PIC work pretty good on Sun.  I always understood the
  25. >|> difference between PIC and non-PIC was the use of relative addressing
  26. >|> versus "hard" addressing.  I'm sure the assembler is more than capable
  27. >|> of handling relative offsets if the compiler generates them correctly.
  28. >
  29. >Not even SUN uses that a.out format anymore. ELF is the way to go.
  30.  
  31. "...that a.out..."  Not everyone has switched to Solaris 2.x!
  32.  
  33. >|> Gcc doesn't grok PIC on any 386 machine, period, e.g. Sun 386i -- at
  34. >
  35. >You haven't try -fPIC -O on libg++-2.3 yet.
  36. >
  37. >|> least that's what I was told when I asked gnu.gcc.help.  There are patches 
  38. >|> out there to make gcc generate PIC on 386.
  39. >
  40. >Those patches are for psudo PIC for SVR3. I don't care SVR3. I want ELF.
  41.  
  42. Actually the patches I'm referring to are for SunOS on Sun386i, which
  43. is actually COFF.  At the risk of repeating myself, gcc itself doesn't
  44. yet support PIC on any 386, irrespective of anything else.
  45.  
  46. >That is precisely why I want PIC. I'like to see PIC/ELF be used in 386bsd
  47. >and Linux.
  48.  
  49. I think you're asking for an awful lot.  Linus Torvalds, Richard Stallman,
  50. and Bill and Lynne Jolitz already have a lot of momentum behind a.out in
  51. their respective operating systems.  Even if the changes were isolated to 
  52. only the assembler and linker, I haven't seen any evidence that any of them 
  53. intend to deviate from that direction.
  54.  
  55. -- 
  56.  
  57. Kaleb Keithley                               kaleb@jpl-devvax.jpl.nasa.gov
  58.  
  59.