From: Peter Michael Green Date: Sat, 13 Jul 2024 15:35:36 +0000 (+0200) Subject: Add tags to make armhf binaries come out correctly. X-Git-Tag: archive/raspbian/3.2.2+dfsg-34+rpi1^2~28 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=45a814b6bbc9772bc107d6d11014b3faeee71893;p=fpc.git Add tags to make armhf binaries come out correctly. Bug-Debian: https://bugs.debian.org/695547 Add elf tag to mark hardfp binaries as such. (Closes: 695547) Gbp-Pq: Name armhf-tags.patch --- diff --git a/fpcsrc/compiler/arm/agarmgas.pas b/fpcsrc/compiler/arm/agarmgas.pas index 386a41f0..2b4c369c 100644 --- a/fpcsrc/compiler/arm/agarmgas.pas +++ b/fpcsrc/compiler/arm/agarmgas.pas @@ -139,6 +139,8 @@ unit agarmgas; inherited WriteExtraHeader; if TArmInstrWriter(InstrWriter).unified_syntax then writer.AsmWriteLn(#9'.syntax unified'); + if target_info.abi = abi_eabihf then + writer.AsmWriteLn(#9'.eabi_attribute 28, 1 @Tag_ABI_VFP_args'); end; {****************************************************************************}