u-boot-brain/tools
Marcus Comstedt 71bdfcb21d riscv: tools: Handle addend to absolute reloc in prelink-riscv
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>
2019-09-03 09:30:32 +08:00
..
binman binman: Add command-line support for replacing entries 2019-07-29 09:38:06 -06:00
buildman buildman: fix invocation examples typos 2019-07-24 12:54:08 -07:00
concurrencytest
dtoc binman: Update state when replacing device-tree entries 2019-07-29 09:38:06 -06:00
env env: Rename the redundancy flags 2019-08-11 16:43:41 -04:00
gdb
kermit
libfdt
logos tools/logos: remove black background of U-Boot logo 2019-07-29 09:32:08 -04:00
omap
patman patman: Reset the output directory when it is removed 2019-07-29 09:38:06 -06:00
scripts
.gitignore tools: add tools/spl_size_limit to ignore list 2019-06-14 16:10:48 -04:00
aisimage.c
aisimage.h
atmel_pmecc_params.c
atmelimage.c
bmp_logo.c bmp_logo: support CONFIG_DM_VIDEO 2019-07-29 00:20:31 +02:00
default_image.c
dumpimage.c tools: dumpimage: Clarify help 2019-02-01 14:13:46 -05:00
dumpimage.h
envcrc.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
fdt_host.h
fdtgrep.c
file2include.c
fit_check_sign.c tools: use read-only mmap in fit_check_sign 2019-05-18 12:32:02 -04:00
fit_common.c tools: use read-only mmap in fit_check_sign 2019-05-18 12:32:02 -04:00
fit_common.h tools: use read-only mmap in fit_check_sign 2019-05-18 12:32:02 -04:00
fit_image.c tools: use read-only mmap in fit_check_sign 2019-05-18 12:32:02 -04:00
fit_info.c tools: use read-only mmap in fit_check_sign 2019-05-18 12:32:02 -04:00
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 x86: Add ifwitool for Intel Integrated Firmware Image 2019-07-23 20:27:56 -07:00
image-host.c
imagetool.c fdt: Fix FIT header verification in mkimage and conduct same checks as bootm 2019-03-08 11:31:44 -05:00
imagetool.h fdt: Fix FIT header verification in mkimage and conduct same checks as bootm 2019-03-08 11:31:44 -05:00
img2brec.sh
img2srec.c
imx_cntr_image.sh
imx8image.c Revert "tools: imx8image: set dcd_skip to true" 2019-01-28 12:59:03 +01:00
imx8m_image.sh tools/imx8m_image.sh: remove bashism 2019-04-01 17:52:37 +02:00
imx8mimage.c tools: add i.MX8M image support 2019-01-01 14:12:18 +01:00
imximage.c
jtagconsole
k3_fit_atf.sh arm: mach-k3: Add secure device build support 2019-04-26 17:51:51 -04:00
k3_gen_x509_cert.sh tools: k3_get_x509 cert: Add a script to generate x509 certificate for K3 devices 2019-05-09 20:22:04 -04:00
kwbimage.c kwbimage: fixing the issue with proper return code checking 2019-05-03 08:14:39 +02:00
kwbimage.h
kwboot.c
lpc32xximage.c
Makefile tools: remove easylogo and include/video_logo.h 2019-08-26 11:46:30 -04:00
microcode-tool
microcode-tool.py
mingw_support.c
mingw_support.h
mips-relocs.c
mkenvimage.c tools: mkenvimage: Always consider non-regular files 2019-07-18 11:31:26 -04:00
mkexynosspl.c
mkimage.c lib: rsa: add support to other openssl engine types than pkcs11 2019-07-18 11:31:23 -04:00
mkimage.h
mksunxiboot.c
moveconfig.py moveconfig: expand simple expressions 2019-07-09 07:00:04 +02:00
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 riscv: tools: Add big endian target support to prelink-riscv 2019-08-15 13:42:28 +08:00
prelink-riscv.inc riscv: tools: Handle addend to absolute reloc in prelink-riscv 2019-09-03 09:30:32 +08:00
proftool.c trace: do not limit trace buffer to 2GiB 2019-07-10 16:52:58 -06:00
relocate-rela.c
rkcommon.c
rkcommon.h
rkimage.c
rkmux.py
rksd.c
rkspi.c
rmboard.py Add a simple script to remove boards 2019-07-10 16:52:58 -06:00
socfpgaimage.c
spl_size_limit.c spl: add overall SPL size check 2019-06-07 11:03:39 -04:00
stm32image.c mkimage: change stm32image header to manage binary information 2019-05-23 11:36:47 +02:00
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 arm64: zynqmp: add tool to convert PMU config object .c to binary 2019-07-30 10:20:06 +02:00
zynqmp_psu_init_minimize.sh tools: zynqmp_psu_init_minimize.sh: fix return lines coding style 2019-07-30 10:20:06 +02:00
zynqmpbif.c tools: zynqmpimage: Align image_size/image_stored_size 2019-01-24 10:03:44 +01:00
zynqmpimage.c
zynqmpimage.h