2013/1/30 Gabor Juhos <[email protected]>:
> The difference between the address of the original
> and the relocated _GLOBAL_OFFSET_TABLE_ is always
> the same as the relocation offset.
>
> The relocation offset is already computed and it is
> available in the 's1/t6' register. Use that to adjust
> the relocated _G_O_T_ address, instead of calculating
> the offset again from the _gp value.
>
> Signed-off-by: Gabor Juhos <[email protected]>
> Cc: Daniel Schwierzeck <[email protected]>
> Cc: Xiangfu Liu <[email protected]>
> ---
> Changes since v1: modify Xburst code as well
>
> This depends on the:
>
> 'MIPS: xburst: simplify relocation offset calculation' patch
> http://patchwork.ozlabs.org/patch/216934/
>
> and supersedes this one:
> http://patchwork.ozlabs.org/patch/214350/
> ---
>  arch/mips/cpu/mips32/start.S |    5 +----
>  arch/mips/cpu/mips64/start.S |    5 +----
>  arch/mips/cpu/xburst/start.S |    5 +----
>  3 files changed, 3 insertions(+), 12 deletions(-)

applied to u-boot-mips/master, thanks

-- 
Best regards,
Daniel
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to