[Clfs-dev] clfs-embedded: mistake in target triplet for softfp?

Andrew Bradford andrew at bradfordembedded.com
Thu Jan 2 05:08:29 PST 2014


On 12/31/2013 01:31 PM, Christian Wiese wrote:
> Hi,
> 
> while looking at target triplet table (Table 4.2. Target Triplets) at
> 
> http://cross-lfs.org/view/clfs-embedded/arm/cross-tools/variables.html
> 
> it seems to me that there is a mistake.
> 
> As far as I understand there are 2 ABIs soft float and hard float,
> whereas the soft float ABI has 2 variants "soft" and "softfp".
> Thus the target triplet for "softfp" should not be
> "arm-linux-musleabihf" but the same as for "soft"
> which is "arm-linux-musleabi".
> 
> See also:
> 
> http://wiki.musl-libc.org/wiki/Getting_started#Notes_on_ARM_Float_Mode
> 
> What is your opinion on that?

You're probably right.  Patch below if someone would apply this to
master for me, I have another patch set that's not ready but this
shouldn't be delayed.

Thanks,
Andrew



>From 58437cd82f2b68946194eed6bc6a9bdf70f8192f Mon Sep 17 00:00:00 2001
From: Andrew Bradford <andrew at bradfordembedded.com>
Date: Thu, 2 Jan 2014 08:06:04 -0500
Subject: [PATCH] arm cross-tools: Only triple *hf for hard float

The softfp target shouldn't use the triple ending in hf.
---
 BOOK/cross-tools/arm/variables.xml |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/BOOK/cross-tools/arm/variables.xml
b/BOOK/cross-tools/arm/variables.xml
index ded15ee..2ecdf65 100644
--- a/BOOK/cross-tools/arm/variables.xml
+++ b/BOOK/cross-tools/arm/variables.xml
@@ -110,11 +110,11 @@

       <tbody>
         <row>
-          <entry>soft</entry>
+          <entry>soft or softfp</entry>
           <entry>arm-linux-musleabi</entry>
         </row>
         <row>
-          <entry>hard or softfp</entry>
+          <entry>hard</entry>
           <entry>arm-linux-musleabihf</entry>
         </row>
       </tbody>
-- 
1.7.10.4




More information about the Clfs-dev mailing list