]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: relocate-rela: Fix BE symtab handling
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 30 Jul 2023 22:16:52 +0000 (00:16 +0200)
committerAngelo Dureghello <angelo@kernel-space.org>
Wed, 6 Sep 2023 11:28:19 +0000 (13:28 +0200)
commit0ad3eef38121b378cac1383b13b7365b1b9b1922
treee8b27126fb0bb759b91320ca1ad6c9be7530b164
parentb53ab97150314674edc25508f4fc528be2baa73f
tools: relocate-rela: Fix BE symtab handling

The symtab contains data in target endianness, convert the data to
native endianness before doing any operations and on them, and back
to target endianness before updating the bin file.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Tested-by: Michal Simek <michal.simek@amd.com> # microblaze, arm64
Reviewed-by: Angelo Dureghello <angelo@kernel-space.org>
tools/relocate-rela.c