]> git.dujemihanovic.xyz Git - u-boot.git/commit
MIPS: simplify relocated _G_O_T_ address calculation
authorGabor Juhos <juhosg@openwrt.org>
Wed, 30 Jan 2013 04:56:37 +0000 (04:56 +0000)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 30 Jan 2013 22:32:52 +0000 (23:32 +0100)
commit025f2b338072781cd747bf7365cf43fcf9f40f1a
treef73c10d3ea7bd07539efb731da57c8a2031aee6f
parent67d80c9f97f1b73d227f64efebf204221a611a70
MIPS: simplify relocated _G_O_T_ address calculation

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 <juhosg@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Cc: Xiangfu Liu <xiangfu@openmobilefree.net>
arch/mips/cpu/mips32/start.S
arch/mips/cpu/mips64/start.S
arch/mips/cpu/xburst/start.S