#911990 BFD: internal error on arm64

Package:
binutils
Source:
binutils
Description:
GNU assembler, linker and binary utilities
Submitter:
Adam Borowski
Date:
2018-11-29 17:24:13 UTC
Severity:
normal
#911990#5
Date:
2018-10-26 21:30:26 UTC
From:
To:
Hi!
Building pmdk 1.5 on arm64 crashes with:

/usr/bin/ld: BFD (GNU Binutils for Debian) 2.31.1 internal error, aborting at ../../bfd/elfnn-aarch64.c:5078 in _bfd_aarch64_erratum_843419_branch_to_stub

/usr/bin/ld: Please report this bug.


Also reproducible with binutils from experimental.

Per reporting instructions, I've copied all pieces collect2 gathers and
attached to this report.  After taking all gcc's gubbins, the invocation
becomes:

ld -plugin /usr/lib/gcc/aarch64-linux-gnu/8/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/8/lto-wrapper -plugin-opt=-fresolution=/tmp/ccs6PFUO.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr --hash-style=gnu -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie system/Scrt1.o system/crti.o system/crtbeginS.o vmem_create_in_region.o libvmem.a libut.a -lgcc --push-state --as-needed -lgcc_s --pop-state -lpthread -lc -lgcc --push-state --as-needed -lgcc_s --pop-state system/crtendS.o system/crtn.o -Lsystem/