[U-Boot] [RFC V1] arm: config: enforce -fno-pic for gcc

Albert ARIBAUD albert.u.boot at aribaud.net
Fri Jan 29 17:42:45 CET 2016


Hello Peng,

On Sat, 5 Dec 2015 15:53:46 +0800, Peng Fan <Peng.Fan at freescale.com>
wrote:
> Android's tool chain enable the -mandroid at default.
> This option will enable the -fpic, which cause uboot compilation
> failure:
> "
>  LD      u-boot
>  u-boot contains unexpected relocations: R_ARM_ABS32
>  R_ARM_RELATIVE
> "

Any idea why Android's toolchain has -fpic enabled?

> we can pass '-fno-pic' to xxx-gcc to disable pic. whether
> the toolchain internally enables or disables pic, '-fno-pic'
> can work well.

No problem apparently with this RFC. If you submit a non-RFC patch
I will apply it.

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list