[U-Boot] [PATCH] PowerPC: Move -fPIC flag to common place
Joakim Tjernlund
joakim.tjernlund at transmode.se
Tue Apr 19 23:56:54 CEST 2011
Wolfgang Denk <wd at denx.de> wrote on 2011/04/19 23:35:40:
>
> Dear Joakim Tjernlund,
>
> In message <OFC3D6185B.85DCE339-ONC1257877.007406B0-C1257877.00746A1D at transmode.se> you wrote:
> >
> > > Can you please provide a fix? I'd like to get rid of this build error
> > > ASAP. We could, of course, simply revert these commits.
> >
> > Grepping shows a boat load of u-boot.lds files under board. I don't
> > have time to patch them all ATM. They really needs to be consolidated
> > somehow but that is over my head.
>
> That means I will revert the two commits?
One, you only claimed that:
> The -fPIC flag belongs with -mrelocatable, move it there.
> Also change -fPIC to -fpic as this produces smaller
> binaries.
> However, currently -mrelocatable promotes -fpic to -fPIC, a
> fix for this is in upcoming gcc 4.6 or you can apply this small
> patch to gcc:
Broke all those 8xx boards.
Jocke
More information about the U-Boot
mailing list