AArch64 target does not build from 2.45.90 pre-release tarball

Matthieu Longo matthieu.longo@arm.com
Tue Jan 27 10:13:25 GMT 2026


On 27/01/2026 10:06, Nick Clifton wrote:
> Hi Guys,
> 
>    I have run into a very strange problem with the AArch64 target.  If I
>    download the 2.45.90 pre-release tarball[1] and try to build for the
>    AArch64 target with --enable-shared, gas fails to build:
> 
>      $ binutils-with-gold-2.45.90/configure --target aarch64-linux-gnu --enable-shared
>      $ make all-gas
>      [...]
>      /bin/ld: config/obj-elf-attr.o: in function `obj_attr_v2_record':
>      gas/config/obj-elf-attr.c:1060:(.text+0x1022): undefined reference to `bfd_elf_obj_attr_v2_init'
>      gas/config/obj-elf-attr.c:1066:(.text+0x104d): undefined reference to `_bfd_obj_attr_v2_find_by_tag'
>      gas/config/obj-elf-attr.c:1087:(.text+0x1129): undefined reference to `obj_attr_v2_t_append'
>      /bin/ld: config/obj-elf-attr.o: in function `obj_attr_v2_subsection_record':
>      gas/config/obj-elf-attr.c:1161:(.text+0x1396): undefined reference to `obj_attr_subsection_v2_t_append'
>      gas/config/obj-elf-attr.c:1136:(.text+0x1428): undefined reference to `obj_attr_subsection_v2_t_remove'
>      gas/config/obj-elf-attr.c:1138:(.text+0x1445): undefined reference to `obj_attr_subsection_v2_t_append'
>      collect2: error: ld returned 1 exit status
> 
>    If however I build directly from the 2_46-branch sources, everything is fine.
>    Also this problem appears to be specific to the AArch64.  I do not have any
>    problems building for x86_64, s390x or ppc64le.
> 
>    I am continuing to investigate, but I thought that I should mention it in case
>    the problem rings a bell with someone...
> 
> Cheers
>    Nick
> 
> 
> [1] https://sourceware.org/pub/binutils/snapshots/binutils-with-gold-2.45.90.tar.xz
> 

Hi Nick,

This is related to https://inbox.sourceware.org/binutils/dcfdca93-1ad8-4c77-9544-b6fa384f1ef6@arm.com/T/#mbfb1eee2e964365e232909a12bf64dacfca27438.
I merged the fix on the branch yesterday -> https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=a69b049d74216b4f24dd10d76b1b461481a58a49

Matthieu


More information about the Binutils mailing list