]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: tools: Fix prelink-riscv to work on big endian hosts
authorMarcus Comstedt <marcus@mc.pp.se>
Fri, 2 Aug 2019 17:45:15 +0000 (19:45 +0200)
committerAndes <uboot@andestech.com>
Thu, 15 Aug 2019 05:42:28 +0000 (13:42 +0800)
commite604410d3eafc77e1b9a7fbb0580a23e528f0037
treed7c21bba43f08632871ff0978eed7cbba46f5a73
parent88af42d3deed0fa705706b134cc50485f3bddcef
riscv: tools: Fix prelink-riscv to work on big endian hosts

All ELF fields whose values are inspected by the code are converted to
CPU byteorder first.  Values which are copied verbatim (relocation
fixups) are not swapped to CPU byteorder and back as it is not needed.

Signed-off-by: Marcus Comstedt <marcus@mc.pp.se>
Cc: Rick Chen <rick@andestech.com>
Reviewed-by: Rick Chen <rick@andestech.com>
tools/prelink-riscv.c
tools/prelink-riscv.inc