From 6593e97c19dd4efbe43063ff37f4c5e65e9de726 Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Tue, 23 May 2023 03:13:28 +0100 Subject: [PATCH] fix-glibc-link-assertion =================================================================== Gbp-Pq: Name fix-glibc-link-assertion.patch --- bfd/elf32-arm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index a6d83b97c..3bf6ec6d6 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -14546,6 +14546,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; } -- 2.30.2