summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-02-27 22:20:44 -0500
committerRich Felker <dalias@aerifal.cx>2014-02-27 22:20:44 -0500
commit5c27c4458f11adaba261353f84bcde4f79f0bdbd (patch)
tree624a629a4c81312bd00123aa9562cde71683e4cb /arch/sh
parentaacd348637e38795dd7ae3c7c8c908d8c0cd24fd (diff)
downloadmusl-5c27c4458f11adaba261353f84bcde4f79f0bdbd.tar.gz
musl-5c27c4458f11adaba261353f84bcde4f79f0bdbd.tar.bz2
musl-5c27c4458f11adaba261353f84bcde4f79f0bdbd.tar.xz
musl-5c27c4458f11adaba261353f84bcde4f79f0bdbd.zip
fix endian subarchs for sh arch
default endianness for sh on linux is little, and while conventions vary, "eb" seems to be the most widely used suffix for big endian.
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/bits/endian.h6
-rw-r--r--arch/sh/reloc.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/sh/bits/endian.h b/arch/sh/bits/endian.h
index 4744b97d..2016cb20 100644
--- a/arch/sh/bits/endian.h
+++ b/arch/sh/bits/endian.h
@@ -1,5 +1,5 @@
-#if __LITTLE_ENDIAN__
-#define __BYTE_ORDER __LITTLE_ENDIAN
-#else
+#if __BIG_ENDIAN__
#define __BYTE_ORDER __BIG_ENDIAN
+#else
+#define __BYTE_ORDER __LITTLE_ENDIAN
#endif
diff --git a/arch/sh/reloc.h b/arch/sh/reloc.h
index 97bee6ae..db3de081 100644
--- a/arch/sh/reloc.h
+++ b/arch/sh/reloc.h
@@ -1,5 +1,5 @@
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-#define ENDIAN_SUFFIX "l"
+#if __BYTE_ORDER == __BIG_ENDIAN
+#define ENDIAN_SUFFIX "eb"
#else
#define ENDIAN_SUFFIX ""
#endif