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