]> git.dujemihanovic.xyz Git - u-boot.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)
commit424f04fcd9ab7b2c19521605827e2453dd79c3e2
treed6daf542cd056c0359e2aece99d40274ae7b3f04
parent26c8c1bd12617aab0480d0a559194e4e0631e637
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