]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - tools/prelink-riscv.c
riscv: tools: Fix prelink-riscv to work on big endian hosts
[thirdparty/u-boot.git] / tools / prelink-riscv.c
index 52eb78e9d061298cf8fd0253c3ee2dcc6f6da3db..a900a1497ad35e81d6fa44aa17d401821abf80e4 100644 (file)
@@ -8,10 +8,6 @@
  * without fixup. Both RV32 and RV64 are supported.
  */
 
-#if __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
-#error "Only little-endian host is supported"
-#endif
-
 #include <errno.h>
 #include <stdbool.h>
 #include <stdint.h>
@@ -25,6 +21,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
+#include <compiler.h>
 
 #ifndef EM_RISCV
 #define EM_RISCV 243