CFLAGS+= -fPIC per default?

Marcel Moolenaar marcel at xcllnt.net
Sun Feb 22 15:17:37 PST 2004


On Sun, Feb 22, 2004 at 03:41:20PM -0700, Joseph Fenton wrote:
> Marcel Moolenaar wrote:
> 
> >On Sun, Feb 22, 2004 at 02:27:34PM -0700, Joseph Fenton wrote:
> > 
> >
> >>Sorry to be anal, but PC-relative addressing is by definition
> >>position-independent code.
> >>   
> >>
> >
> >False.
> >
> >The fundamental property of PIC , besides the fact that it's a
> >complete misnomer, is that there are no relocations in the code
> >segment.
> >
> You just proved my statement true. PC-relative code contains no
> relocation for within a code section. How do you think that conditional
> branches work? They do PC-relative jumps inside the code section.

You fail to see the point. PC relative relocations are not
guaranteed to be without relocation and hence are not by
definition PIC.

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel at xcllnt.net


More information about the freebsd-amd64 mailing list