u-boot-2016/tools
Scott Wood 8137af19e7 arm64: Add tool to statically apply RELA relocations
ARM64 uses the newer RELA-style relocations rather than the older REL.
RELA relocations have an addend in the relocation struct, rather than
expecting the loader to read a value from the location to be updated.

While this is beneficial for ordinary program loading, it's problematic
for U-Boot because the location to be updated starts out with zero,
rather than a pre-relocation value.  Since we need to be able to run C
code before relocation, we need a tool to apply the relocations at
build time.

In theory this tool is applicable to other newer architectures (mainly
64-bit), but currently the only relocations it supports are for arm64,
and it assumes a 64-bit little-endian target.  If the latter limitation
is ever to be changed, we'll need a way to tell the tool what format
the image is in.  Eventually this may be replaced by a tool that uses
libelf or similar and operates directly on the ELF file.  I've written
some code for such an approach but libelf does not make it easy to poke
addresses by memory address (rather than by section), and I was
hesitant to write code to manually parse the program headers and do the
update outside of libelf (or to iterate over sections) -- especially
since it wouldn't get test coverage on things like binaries with
multiple PT_LOAD segments.  This should be good enough for now to let
the manual relocation stuff be removed from the arm64 patches.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: David Feng <fenghua@phytium.com.cn>
2014-01-09 16:08:22 +01:00
..
bddb Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
buildman buildman: make board selector argument a regex 2013-11-21 13:35:58 -07:00
easylogo
env Makefile: do not create a symbolic link to arch/${ARCH}/include/asm 2013-11-08 09:39:14 -05:00
gdb tools: Makefile: delete redundant lines 2013-11-17 14:11:32 -05:00
kernel-doc Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
logos arm, am335x: add support for 3 siemens boards 2013-08-28 11:44:59 -04:00
omap
palmtreo680
patman patman: add Commit-notes tag and section 2013-11-21 13:35:51 -07:00
scripts Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
.gitignore
aisimage.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
aisimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
bin2header.c
binutils-version.sh
bmp_logo.c tools, bmp_logo: fix index from uint16_t to int to allow bigger logos 2013-08-10 10:48:00 +02:00
checkpatch.pl boards.cfg: show info about boards.cfg instead of MAINTAINERS 2013-09-20 10:30:53 -04:00
checkstack.pl
cleanpatch
default_image.c
dtc-version.sh Validate dtc is new enough 2013-08-02 18:29:32 -04:00
envcrc.c
fdt_host.h
fit_image.c FIT: delete unnecessary casts 2013-09-20 10:30:54 -04:00
gcc-version.sh
gen_eth_addr.c
getline.c
getline.h
image-host.c
img2brec.sh Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
img2srec.c
imximage.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
imximage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
jtagconsole
kwbimage.c tools/Makefile: Move _GNU_SOURCE to Makefile 2013-08-16 13:45:15 -04:00
kwbimage.h
kwboot.c
Makefile arm64: Add tool to statically apply RELA relocations 2014-01-09 16:08:22 +01:00
mingw_support.c Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
mingw_support.h Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
mkenvimage.c tools/Makefile: Move _GNU_SOURCE to Makefile 2013-08-16 13:45:15 -04:00
mkexynosspl.c SPL: EXYNOS: Prepare for variable size SPL support 2013-12-30 16:50:35 +09:00
mkimage.c ARM: mxs: tools: Add mkimage support for MXS bootstream 2013-08-31 15:26:52 +02:00
mkimage.h ARM: mxs: tools: Add mkimage support for MXS bootstream 2013-08-31 15:26:52 +02:00
mpc86x_clk.c
mxsboot.c tools: mxsboot: Mark the FCB pages as valid 2013-09-10 19:12:54 +02:00
mxsimage.c ARM: mxs: tools: Fix errno handling in strtoul() invocation 2013-12-17 18:38:43 +01:00
mxsimage.h ARM: mxs: tools: Add mkimage support for MXS bootstream 2013-08-31 15:26:52 +02:00
ncb.c
netconsole
omapimage.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
omapimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
os_support.c Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
os_support.h Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
pblimage.c tools/Makefile: Move _GNU_SOURCE to Makefile 2013-08-16 13:45:15 -04:00
pblimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
proftool.c
reformat.py Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
relocate-rela.c arm64: Add tool to statically apply RELA relocations 2014-01-09 16:08:22 +01:00
setlocalversion
ublimage.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ublimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ubsha1.c Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
xway-swap-bytes.c