C-SKY: Make dynamic linker's name compitable with the older gcc.
authorCooper Qu <cooper.qu@linux.alibaba.com>
Tue, 20 Oct 2020 15:00:59 +0000 (23:00 +0800)
committerMao Han <han_mao@linux.alibaba.com>
Wed, 21 Oct 2020 08:05:29 +0000 (16:05 +0800)
commit56b223c1c8334e4255bf11aed1386a007822702a
tree3b3a2f0d3e0432f6585fc288ba7746527bb26499
parent33e5907ee6be67f029a98c2d7df60561dd7186cc
C-SKY: Make dynamic linker's name compitable with the older gcc.

__CSKY_HARD_FLOAT_ABI__ was added on gcc 11 to specify whether
-mfloat-abi=hard is set.  On older gcc, the float ABI is defined
solely with __CSKY_HARD_FLOAT__.  If __CSKY_HARD_FLOAT__ is set, it can
be either a hard-float ABI (gcc older than 11, or gcc11 -mfloat-abi=hard
(__CSKY_HARD_FLOAT_ABI__ is set) or -mfloat-abi=softfp
(__CSKY_HARD_FLOAT_ABI__ is not set). To be compatible with older gcc,
use __CSKY_HARD_FLOAT_FPU_SF__ identify if -mfloat-abi is supported,
because it is added to gcc at the same time as -mfloat-abi.

Reviewed-by: Mao Han  <han_mao@linux.alibaba.com>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
sysdeps/csky/preconfigure