[Buildroot] [PATCH] package/binutils: add binutils version 2.31

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Jul 17 11:09:52 UTC 2018


Hello,

+Max Filippov in Cc for Xtensa (see below)

On Mon, 16 Jul 2018 23:30:10 +0200, Romain Naour wrote:
> https://sourceware.org/ml/binutils/2018-07/msg00213.html
> 
> Signed-off-by: Romain Naour <romain.naour at gmail.com>
> ---
>  package/binutils/2.31/0001-sh-conf.patch           |  48 ++++
>  package/binutils/2.31/0002-ld-makefile.patch       |  41 +++
>  .../2.31/0003-check-ldrunpath-length.patch         |  36 +++
>  .../2.31/0004-add-sysroot-fix-from-bug-3049.patch  |  51 ++++
>  .../2.31/0005-poison-system-directories.patch      | 306 +++++++++++++++++++++
>  ...location-where-GOT-information-is-collect.patch | 198 +++++++++++++
>  ...bustness.-Return-FALSE-in-case-of-NULL-po.patch |  35 +++
>  ...lobal-symbol-is-not-an-indirect-or-warnin.patch |  43 +++
>  ...tion-was-still-being-generated-when-symbo.patch |  37 +++
>  package/binutils/Config.in.host                    |   4 +
>  package/binutils/binutils.hash                     |   1 +
>  11 files changed, 800 insertions(+)
>  create mode 100644 package/binutils/2.31/0001-sh-conf.patch
>  create mode 100644 package/binutils/2.31/0002-ld-makefile.patch
>  create mode 100644 package/binutils/2.31/0003-check-ldrunpath-length.patch
>  create mode 100644 package/binutils/2.31/0004-add-sysroot-fix-from-bug-3049.patch
>  create mode 100644 package/binutils/2.31/0005-poison-system-directories.patch
>  create mode 100644 package/binutils/2.31/0006-Refactored-location-where-GOT-information-is-collect.patch
>  create mode 100644 package/binutils/2.31/0007-Improved-robustness.-Return-FALSE-in-case-of-NULL-po.patch
>  create mode 100644 package/binutils/2.31/0008-Make-sure-global-symbol-is-not-an-indirect-or-warnin.patch
>  create mode 100644 package/binutils/2.31/0009-PLT-information-was-still-being-generated-when-symbo.patch

The update to binutils 2.31 seems to be causing a regression: it cannot
build uClibc anymore:


  LD libthread_db-1.0.30.so
/opt/xtensa-lx60--uclibc--bleeding-edge-2018.07-1/lib/gcc/xtensa-buildroot-linux-uclibc/8.1.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld: BFD (GNU Binutils) 2.31 internal error, aborting at elf32-xtensa.c:3269 in elf_xtensa_finish_dynamic_sections

/opt/xtensa-lx60--uclibc--bleeding-edge-2018.07-1/lib/gcc/xtensa-buildroot-linux-uclibc/8.1.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld: Please report this bug.

collect2: error: ld returned 1 exit status
libpthread/nptl_db/Makefile.in:53: recipe for target 'lib/libthread_db.so' failed
make[1]: *** [lib/libthread_db.so] Error 1
make[1]: Leaving directory '/opt/output/build/uclibc-1.0.30'

My previous build of toolchains, which was using binutils 2.30, went
fine including on Xtensa.

See
https://gitlab.com/free-electrons/toolchains-builder/-/jobs/82264912
for the build failure.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list