[U-Boot] [PATCH 2/2] [NEXT] arm926ejs: reduce code size with -msingle-pic-base

Albert ARIBAUD albert.aribaud at free.fr
Fri Sep 24 18:08:44 CEST 2010


I think I have found the root cause of your issue.

I was actually lucky that it worked at all for me; and as Heiko's board 
skipped relocation, it would not trigger the bug either... My computing 
of r9/r10 in the relocate_code stage was plain wrong, based on the FLASH 
execution location, not the RAM one. :/

I'll post a V2 patch set within the next hour -- Heiko, this second 
patchset has your fixes except I mouved the r9/r10 recomputation inside 
the #ifndef CONFIG_SKIP_RELOCATE_UBOOT, the logic being that if we can 
skip relocation, then we are already running at the right location and 
we don't need fixing the pic base either.

Ben and Heiko, please (re-)test the patch when it's out -- sorry for the 
extra workload.

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list