From: Matthias Klose Date: Wed, 13 Jul 2022 18:11:01 +0000 (+0100) Subject: fix-glibc-link-assertion X-Git-Tag: archive/raspbian/2.38.90.20220713-2+rpi1~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3535a388722e35f9410fd8aafc047699f80f699a;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 0852b38ae..ec5e5f229 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -14543,6 +14543,14 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) if (out_attr[Tag_ABI_HardFP_use].i == 3 && out_attr[Tag_FP_arch].i == 0) out_attr[Tag_ABI_HardFP_use].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; }