mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-15 15:46:16 +09:00
71bdfcb21d
Previously the handling of R_RISCV_32 and R_RISCV_64 would simply insert the value of the symbol and ignore any addend. However, there exist relocs where the addend is non-zero: 0000000080250900 R_RISCV_64 efi_runtime_services+0x0000000000000068 0000000080250910 R_RISCV_64 efi_runtime_services+0x0000000000000038 0000000080250920 R_RISCV_64 efi_runtime_services+0x0000000000000018 0000000080250930 R_RISCV_64 efi_runtime_services+0x0000000000000020 0000000080250980 R_RISCV_64 efi_runtime_services+0x0000000000000048 0000000080250990 R_RISCV_64 efi_runtime_services+0x0000000000000050 00000000802509a0 R_RISCV_64 efi_runtime_services+0x0000000000000058 0000000080250940 R_RISCV_64 systab+0x0000000000000030 0000000080250950 R_RISCV_64 systab+0x0000000000000040 0000000080250960 R_RISCV_64 systab+0x0000000000000050 0000000080250970 R_RISCV_64 systab+0x0000000000000060 In these cases the addend needs to be added to the symbol value to get the correct value for the reloc. Signed-off-by: Marcus Comstedt <marcus@mc.pp.se> Cc: Rick Chen <rick@andestech.com> |
||
---|---|---|
.. | ||
binman | ||
buildman | ||
concurrencytest | ||
dtoc | ||
env | ||
gdb | ||
kermit | ||
libfdt | ||
logos | ||
omap | ||
patman | ||
scripts | ||
.gitignore | ||
aisimage.c | ||
aisimage.h | ||
atmel_pmecc_params.c | ||
atmelimage.c | ||
bmp_logo.c | ||
default_image.c | ||
dumpimage.c | ||
dumpimage.h | ||
envcrc.c | ||
fdt_host.h | ||
fdtgrep.c | ||
file2include.c | ||
fit_check_sign.c | ||
fit_common.c | ||
fit_common.h | ||
fit_image.c | ||
fit_info.c | ||
gen_eth_addr.c | ||
gen_ethaddr_crc.c | ||
genboardscfg.py | ||
getline.c | ||
getline.h | ||
gpheader.h | ||
gpimage-common.c | ||
gpimage.c | ||
ifdtool.c | ||
ifdtool.h | ||
ifwitool.c | ||
image-host.c | ||
imagetool.c | ||
imagetool.h | ||
img2brec.sh | ||
img2srec.c | ||
imx_cntr_image.sh | ||
imx8image.c | ||
imx8m_image.sh | ||
imx8mimage.c | ||
imximage.c | ||
jtagconsole | ||
k3_fit_atf.sh | ||
k3_gen_x509_cert.sh | ||
kwbimage.c | ||
kwbimage.h | ||
kwboot.c | ||
lpc32xximage.c | ||
Makefile | ||
microcode-tool | ||
microcode-tool.py | ||
mingw_support.c | ||
mingw_support.h | ||
mips-relocs.c | ||
mkenvimage.c | ||
mkexynosspl.c | ||
mkimage.c | ||
mkimage.h | ||
mksunxiboot.c | ||
moveconfig.py | ||
mrvl_uart.sh | ||
mtk_image.c | ||
mtk_image.h | ||
mxsboot.c | ||
mxsimage.c | ||
mxsimage.h | ||
ncb.c | ||
netconsole | ||
omapimage.c | ||
omapimage.h | ||
os_support.c | ||
os_support.h | ||
pbl_crc32.c | ||
pbl_crc32.h | ||
pblimage.c | ||
pblimage.h | ||
prelink-riscv.c | ||
prelink-riscv.inc | ||
proftool.c | ||
relocate-rela.c | ||
rkcommon.c | ||
rkcommon.h | ||
rkimage.c | ||
rkmux.py | ||
rksd.c | ||
rkspi.c | ||
rmboard.py | ||
socfpgaimage.c | ||
spl_size_limit.c | ||
stm32image.c | ||
sunxi-spl-image-builder.c | ||
ublimage.c | ||
ublimage.h | ||
ubsha1.c | ||
version.h | ||
vybridimage.c | ||
xway-swap-bytes.c | ||
zynqimage.c | ||
zynqmp_pm_cfg_obj_convert.py | ||
zynqmp_psu_init_minimize.sh | ||
zynqmpbif.c | ||
zynqmpimage.c | ||
zynqmpimage.h |