package/elf2flt: add support for XTENSA_[PN]DIFF relocations
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 13 May 2020 12:35:20 +0000 (05:35 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 15 May 2020 19:31:25 +0000 (21:31 +0200)
commitc99a3950d8ac63f51ff0a3f8199ddab6885e2f05
tree5850763f2c7430c80ac91aa4223565f47070791e
parent1dd6d5222641fc3b88b49b081abe5f747ba40a0d
package/elf2flt: add support for XTENSA_[PN]DIFF relocations

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@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/elf2flt/0002-elf2flt.c-add-new-relocation-types-for-xtensa.patch [new file with mode: 0644]