Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP id AA77 ; Thu, 28 Jan 93 05:02:02 EST Newsgroups: comp.unix.bsd Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!cs.uoregon.edu!news.uoregon.edu!news.u.washington.edu!serval!hlu From: hlu@eecs.wsu.edu (H.J. Lu) Subject: Re: [386BSD] gcc2 and -fPIC Message-ID: <1993Jan26.210430.27806@serval.net.wsu.edu> Sender: news@serval.net.wsu.edu (USENET News System) Organization: School of EECS, Washington State University References: <CGD.93Jan25211237@eden.CS.Berkeley.EDU> Date: Tue, 26 Jan 93 21:04:30 GMT 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.