Date: Fri, 17 Nov 1995 09:46:19 -0800 From: John Polstra <jdp@polstra.com> To: chuckr@glue.umd.edu Cc: freebsd-questions@FreeBSD.org, freebsd-hackers@FreeBSD.org Subject: Re: Shared Libraries...almost there... Message-ID: <199511171746.JAA21432@austin.polstra.com> In-Reply-To: <Pine.SUN.3.91.951116221654.14053E@espresso.eng.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.SUN.3.91.951116221654.14053E@espresso.eng.umd.edu> chuckr@glue.umd.edu writes: > You know there's two version of that pic flag stuff, which stands for > Position Independent Code (I think). Yes, that's right. > The -fPIC is supposed to be > stronger in force than the -fpic, but most code does not need the strong > -fPIC. I don't know how to tell the difference, except to try it and > find out. Actually, for the i386, there is no difference between the two. They're exactly the same. On some machines (Motrola 68K architecture, for example), "-fpic" generates certain address offsets with 16-bit fields, whereas "-fPIC" uses 32-bit fields. The first form is OK for most programs, but really large programs overflow the 16-bit fields and require "-fPIC". -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511171746.JAA21432>