[Buildroot] [PATCH] package/binutils: fix assertion failure in xtensa ld

Peter Korsgaard peter at korsgaard.com
Sun Mar 15 10:53:54 UTC 2020


>>>>> "Max" == Max Filippov <jcmvbkbc at gmail.com> writes:

 > xtensa ld fails with the following message
 >   ld: BFD (GNU Binutils) 2.31.1 internal error, aborting at
 >   elf32-xtensa.c:3283 in elf_xtensa_finish_dynamic_sections

 > during domoticz package build. It happens because of mismatch between
 > the size allocated for dynamic relocations in the executable image and
 > the number of PLT relocations actually written to the image. The
 > mismatch is caused by the fact that undefined weak symbol is treated as
 > dynamic (and thus needing PLT relocation), but xtensa linker not
 > expecting that.

 > Fixes: http://autobuild.buildroot.net/results/7885705f1b1c0f31cf21b464150f5509929c1906/
 > Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
 > Backported from: e15a8da9c71336b06cb5f2706c3f6b7e6ddd95a3
 > ---
 >  .../0018-bfd-xtensa-fix-PR-ld-25630.patch     | 37 +++++++++++++++++++
 >  .../0007-bfd-xtensa-fix-PR-ld-25630.patch     | 37 +++++++++++++++++++
 >  .../0004-bfd-xtensa-fix-PR-ld-25630.patch     | 37 +++++++++++++++++++
 >  3 files changed, 111 insertions(+)
 >  create mode 100644 package/binutils/2.31.1/0018-bfd-xtensa-fix-PR-ld-25630.patch
 >  create mode 100644 package/binutils/2.32/0007-bfd-xtensa-fix-PR-ld-25630.patch
 >  create mode 100644 package/binutils/2.33.1/0004-bfd-xtensa-fix-PR-ld-25630.patch

Committed (for the versions supported) to 2019.02.x and 2019.11.x, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list