[Buildroot] [PATCH] package/elf2flt: add support for XTENSA_[PN]DIFF relocations

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri May 15 19:32:45 UTC 2020


On Wed, 13 May 2020 05:35:20 -0700
Max Filippov <jcmvbkbc at gmail.com> wrote:

> Xtensa have added new relocation types R_XTENSA_[NP]DIFF{8,16,32} with
> the same properties as the existing types R_XTENSA_DIFF{8,16,32}.
> Add them to the list of ignored relocation types.
> 
> This fixes the following error when invoking elf2flt on xtensa binaries
> built with the recent binutils:
> 
>   ERROR: reloc type R_XTENSA_PDIFF32 unsupported in this context
> 
> Reported-by: Romain Naour <romain.naour at gmail.com>
> Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
> ---
>  ...-add-new-relocation-types-for-xtensa.patch | 188 ++++++++++++++++++
>  1 file changed, 188 insertions(+)
>  create mode 100644 package/elf2flt/0002-elf2flt.c-add-new-relocation-types-for-xtensa.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list