[PATCH v3] aarch64-pe support for LD, GAS and BFD
Andrew Burgess
aburgess@redhat.com
Wed Oct 19 11:14:22 GMT 2022
Zac Walker via Binutils <binutils@sourceware.org> writes:
> Sorry - this patch caused a build break:
>
> checking for PT_GETDBREGS... /usr/bin/ld: ../bfd/.libs/libbfd.a(targets.o):(.data.rel.ro+0x48): undefined reference to `aarch64_pe_le_vec'
> /usr/bin/ld: ../bfd/.libs/libbfd.a(targets.o):(.data.rel.ro+0x17c0): undefined reference to `aarch64_pe_le_vec'
> collect2: error: ld returned 1 exit status
> make[4]: *** [Makefile:1276: as-new] Error 1
>
> Investigating now and hope to fix soon (or roll back.)
I just pushed the patch below to fix this issue. Just needed to run
autoreconf.
Thanks,
Andrew
---
commit 6d6ae7c23dd59fe16f3e366e969b927d97fe5e01
Author: Andrew Burgess <aburgess@redhat.com>
Date: Wed Oct 19 12:00:42 2022 +0100
bfd: fix undefined references to aarch64_pe_le_vec
After commit:
commit c60b3806799abf1d7f6cf5108a1b0e733a950b13
Date: Wed Oct 19 10:57:12 2022 +0200
aarch64-pe support for LD, GAS and BFD
It appears that bfd/Makefile.in and bfd/configure were not regenerated
correctly. The differences in the configure file are only whitespace,
but in Makefile.in a critical reference to pe-aarch64.lo was missing.
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 3f520355829..b906976a1c0 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -1048,6 +1048,7 @@ BFD64_BACKENDS = \
pe-loongarch64igen.lo \
pe-x86_64.lo \
pei-aarch64.lo \
+ pe-aarch64.lo \
pei-ia64.lo \
pei-loongarch64.lo \
pei-x86_64.lo \
@@ -1700,6 +1701,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pc532-mach.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdb.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pdp11.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pe-aarch64.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pe-aarch64igen.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pe-arm-wince.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pe-arm.Plo@am__quote@
diff --git a/bfd/configure b/bfd/configure
index bae9d17c515..1c1760670cb 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -13604,7 +13604,7 @@ do
aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
aarch64_pei_le_vec) tb="$tb pei-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;;
- aarch64_pe_le_vec) tb="$tb pe-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;;
+ aarch64_pe_le_vec) tb="$tb pe-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;;
alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
More information about the Binutils
mailing list