[Buildroot] [PATCH] package/elf2flt: fix text relocations on xtensa
Peter Korsgaard
peter at korsgaard.com
Thu Dec 8 09:55:11 UTC 2022
>>>>> "Max" == Max Filippov <jcmvbkbc at gmail.com> writes:
> elf2flt 2021.08 has changed endianness swapping logic for relocated
> entries in the text segment. This broke little-endian xtensa FLAT images
> which now fail to start with the following message:
> binfmt_flat: reloc outside program 0x24c80100 (0 - 0x6e430/0x56a20)
> Fix it by restoring old endianness swapping logic for relocated entries
> in the text segment when building for xtensa.
> Reported-by: Niklas Cassel <niklas.cassel at wdc.com>
> Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
> ---
> I've tested a couple other prominent candidates, but it looks like
> only xtensa has this issue. I've submitted pull request to elf2flt
> with the patch below.
Committed to 2022.08.x and 2022.02.x, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list