summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/reloc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/sh/reloc.h b/arch/sh/reloc.h
index 61192ffe..77da6508 100644
--- a/arch/sh/reloc.h
+++ b/arch/sh/reloc.h
@@ -6,7 +6,13 @@
#define ENDIAN_SUFFIX ""
#endif
-#define LDSO_ARCH "sh" ENDIAN_SUFFIX
+#if __SH_FPU_ANY__ || __SH4__
+#define FP_SUFFIX ""
+#else
+#define FP_SUFFIX "-nofpu"
+#endif
+
+#define LDSO_ARCH "sh" ENDIAN_SUFFIX FP_SUFFIX
#define TPOFF_K 8