From: Adam Conrad Date: Tue, 27 May 2025 10:40:04 +0000 (+0100) Subject: Work around broken compilers (like fpc) on armhf X-Git-Tag: archive/raspbian/2.31-13+rpi1+deb11u13^2~141 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bc82cd568d2c5642bd20886f73965ec87d372c38;p=glibc.git Work around broken compilers (like fpc) on armhf Forwarded: no patches/arm/local-vfp-sysdeps.diff: Force the Tag_ABI_HardFP_use and Tag_ABI_VFP_args EABI tags when building for armhf, so compilers only linking crti.o will generate what appear to be armhf binaries. Gbp-Pq: Topic arm Gbp-Pq: Name local-vfp-sysdeps.diff --- diff --git a/sysdeps/arm/sysdep.h b/sysdeps/arm/sysdep.h index 5fff50dbf..0e63b570e 100644 --- a/sysdeps/arm/sysdep.h +++ b/sysdeps/arm/sysdep.h @@ -134,6 +134,13 @@ the caller. */ .eabi_attribute 24, 1 +#ifdef __ARM_PCS_VFP +/* Tag_ABI_HardFP_use: This code uses hard floating point */ + .eabi_attribute 27, 3 +/* Tag_ABI_VFP_args: This code stores FP arguments in VFP registers */ + .eabi_attribute 28, 1 +#endif /* __ARM_PCS_VFP */ + /* The thumb2 encoding is reasonably complete. Unless suppressed, use it. */ .syntax unified # if defined(__thumb2__) && !defined(NO_THUMB)