Add tags to make armhf binaries come out correctly.
authorPeter Michael Green <plugwash@debian.org>
Fri, 5 Jan 2024 07:40:08 +0000 (08:40 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Fri, 5 Jan 2024 07:40:08 +0000 (08:40 +0100)
Bug-Debian: https://bugs.debian.org/695547

Add elf tag to mark hardfp binaries as such. (Closes: 695547)

Gbp-Pq: Name armhf-tags.patch

fpcsrc/compiler/arm/agarmgas.pas

index 386a41f04818ff9366154e1c1b3f623f3f47f513..2b4c369cafe3f96be58f07d24f58513f74ac6753 100644 (file)
@@ -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;
 
 {****************************************************************************}