]> git.baikalelectronics.ru Git - uboot.git/commit
tools: relocate-rela: introduce elf16_to_cpu() and elf32_to_cpu()
authorOvidiu Panait <ovpanait@gmail.com>
Sat, 11 Mar 2023 17:38:35 +0000 (19:38 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 13 Mar 2023 10:46:17 +0000 (11:46 +0100)
commite4a32e15deefe5075c8a33664d2a22236136620f
treed6daf542cd056c0359e2aece99d40274ae7b3f04
parent418b55dc87db1be79116a6bc24ad6d0040ff48a9
tools: relocate-rela: introduce elf16_to_cpu() and elf32_to_cpu()

Add elf16_to_cpu() and elf32_to_cpu() functions that allow to read data in
both big-endian and little-endian formats.

Reviewed-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20230311173838.521804-2-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
tools/relocate-rela.c