Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP
id AA47 ; Wed, 27 Jan 93 19:00:10 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!citec!sgccseh
From: sgccseh@citec.oz.au (Steve Hocking)
Subject: Re: [386BSD] gcc2 and -fPIC
Organization: CITEC
Date: Wed, 27 Jan 1993 03:31:41 GMT
Message-ID: <1993Jan27.033141.3135@citec.oz.au>
References: <CGD.93Jan25211237@eden.CS.Berkeley.EDU>
Lines: 23
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-)
Gas isnt up to handling some of the special requirements of PIC code
(something to do with certain psuedo ops I think) You'll need to hack GAS as
well if you're trying to get shared libs going (as well as ld).
>Chris G. Demetriou cgd@cs.berkeley.edu
>"Sometimes it is better to have twenty million instructions by
> Friday than twenty million instructions per second." -- Wes Clark
--
-----------------------------------------------------------------------------
"Toddlers are the stormtroopers of the Lord of Entropy"
Stephen Hocking sgccseh@citecuc.citec.oz.au