commit | dc21abec3d362b7719bd598699bc8a762d51e359 | [log] [tgz] |
---|---|---|
author | Marcus Comstedt <marcus@mc.pp.se> | Fri Aug 02 19:45:15 2019 +0200 |
committer | Andes <uboot@andestech.com> | Thu Aug 15 13:42:28 2019 +0800 |
tree | d7c21bba43f08632871ff0978eed7cbba46f5a73 | |
parent | 50f29640b5bcbaea79b182ba1bac8740861cf593 [diff] |
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>