From: Matthias Klose Date: Thu, 10 Feb 2022 12:05:47 +0000 (+0000) Subject: fix-glibc-link-assertion X-Git-Tag: archive/raspbian/2.37.90.20220207-1+rpi1~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=08f6552c4483920e9fa8fea75c67bcbcd7b44880;p=binutils.git fix-glibc-link-assertion Gbp-Pq: Name fix-glibc-link-assertion.patch --- diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 86da60e76..616efe60a 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -14523,6 +14523,14 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) out_attr[Tag_MPextension_use_legacy].i = 0; } + /* PR 28859 and 28848: Handle the case where the first input file, + eg crti.o, has a Tag_ABI_HardFP_use of 3 but no Tag_FP_arch set. + Using Tag_ABI_HardFP_use in this way is deprecated, so reset the + attribute to zero. + FIXME: Should we handle other non-zero values of Tag_ABI_HardFO_use ? */ + if (out_attr[Tag_ABI_HardFP_use].i == 3 && out_attr[Tag_FP_arch].i == 0) + out_attr[Tag_ABI_HardFP_use].i = 0; + return result; }