]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: relocate-rela: adjust le64_to_cpu -> le32_to_cpu in decode_elf32()
authorOvidiu Panait <ovpanait@gmail.com>
Sat, 11 Mar 2023 17:38:34 +0000 (19:38 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 13 Mar 2023 10:46:17 +0000 (11:46 +0100)
commit26c8c1bd12617aab0480d0a559194e4e0631e637
tree0f496f69c9fe27a3fdcec2b5cc850a874b873b0b
parentebea05e10ea8d838163273ebb4f538febc299cce
tools: relocate-rela: adjust le64_to_cpu -> le32_to_cpu in decode_elf32()

The sh_addr/sh_offset/sh_size fields in Elf32_Shdr are 32-bits wide, so
use le32_to_cpu() instead of the 64-bit variant.

Fixes: 5e0e1a86d327 ("tools: relocate-rela: Fix ELF decoding on big-endian hosts")
Reviewed-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20230311173838.521804-1-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
tools/relocate-rela.c