diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-01-30 04:56:37 +0000 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2013-01-30 23:32:52 +0100 |
commit | 025f2b338072781cd747bf7365cf43fcf9f40f1a (patch) | |
tree | f73c10d3ea7bd07539efb731da57c8a2031aee6f /tools/imximage.c | |
parent | 67d80c9f97f1b73d227f64efebf204221a611a70 (diff) | |
download | u-boot-imx-025f2b338072781cd747bf7365cf43fcf9f40f1a.zip u-boot-imx-025f2b338072781cd747bf7365cf43fcf9f40f1a.tar.gz u-boot-imx-025f2b338072781cd747bf7365cf43fcf9f40f1a.tar.bz2 |
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>
Diffstat (limited to 'tools/imximage.c')
0 files changed, 0 insertions, 0 deletions