[U-Boot] Relocation size penalty calculation

Graeme Russ
2009-10-11T00:43:36Z

On Sun, Oct 11, 2009 at 4:45 AM, Joakim Tjernlund
<joakim.tjernlund@transmode.se> wrote:
> Mike Frysinger <vapier@gentoo.org> wrote on 10/10/2009 18:52:29:
>>
>> On Saturday 10 October 2009 06:47:42 Joakim Tjernlund wrote:
>> > Graeme Russ <graeme.russ@gmail.com> wrote on 10/10/2009 12:38:19:
>> > > -fpic / -pic make no difference
>> >
>> > not on x86, on ppc it is a big difference.
>>
>> i think you guys mean -fpic and -fPIC because there is no -pic flag ... while
>> the two make a big diff on some arches like ppc, they make pretty much no
>> different on x86 last i looked

Sorry for the confusion - by -fpic / -pic I was referring to -fpic (gcc) /
-pic (ld) flags versus -fpie (gcc) / -pie (ld) flags.

>
> Yes, this was what I was thinking(-fpic vs. -fPIC). These will probably only
> make a difference on RISC like arches.
>

There appears to be no difference (on x86) between pic, PIC, and pie. The
big difference is when I drop ld's -pic and use ld's --emit-relocs instead

> Jocke
>
>

Regards,

Graeme