Add tags to make armhf binaries come out correctly.
authorPeter Michael Green <plugwash@debian.org>
Thu, 14 Jan 2021 20:35:41 +0000 (20:35 +0000)
committerRaspbian forward porter <root@raspbian.org>
Thu, 14 Jan 2021 20:35:41 +0000 (20:35 +0000)
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 3e412d9b2b3d8f1ad8328d7496c5c1bb33c49bcb..fb03fb020dc6663d10fd06d37992354ad85ea40a 100644 (file)
@@ -132,6 +132,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;
 
 {****************************************************************************}