AArch64 target does not build from 2.45.90 pre-release tarball
Nick Clifton
nickc@redhat.com
Tue Jan 27 10:06:12 GMT 2026
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
More information about the Binutils
mailing list