[U-Boot] Build error with the master branch

Albert ARIBAUD albert.aribaud at free.fr
Thu Jan 27 20:15:56 CET 2011


Le 27/01/2011 12:12, Stefano Babic a écrit :
> On 01/27/2011 08:42 AM, Jason Liu wrote:
>> Hi, There,
>>
>
> Hi Jason,
>
>>
>> I found this error is related with the following commit:
>>
>> commit 8aba9dceebb14144e07d19593111ee3a999c37fc
>>
>> Are you aware of that?
>
> I can confirm this problem, and it is relevant for arm only.
> As far I can understand at the moment, it is due to the -pie settings in
> arch/arm/config.mk.
>
> However, it is not to me clear because -pie is added to PLATFORM_LDFLAGS
> and not to LDFLAGS_u-boot. Also before the patch the -pie option is used
> only for linking u-boot at the end of the build process and not for
> partial linking. Probably does it come when we used libraries instead of
> objects ?
>
> Setting LDFLAGS_u-boot in arch/arm/config.mk to -pie and removing it
> from PLATFORM_LDFLAGS removes the build error. Not yet tested, anyway.
>
> Best regards,
> Stefano Babic

-pie is used to generate the ARM ELF relocation tables in U-Boot, and 
should indeed be used only for the final stage linking; so moving it to 
LDFLAGS_u-boot is sensible.

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list