From 000f08bb1864d570d5652d621e34f73ecf54626a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 13 May 2019 10:23:16 +0200 Subject: sys/linux: switch ppc64le to little-endian make extract recently broke for powerpc on linux-next with: include/uapi/linux/byteorder/big_endian.h:6:2: error: #error "Unsupported endianness, check your toolchain" #error "Unsupported endianness, check your toolchain" Turns out we always built ppc64le headers as big-endian. First, kernel was configured as BE. Then, we used gcc to build an executable program for host and on x86 gcc does not define __LITTLE_ENDIAN__ so kernel thought that the toolchain is BE too. Configure kernel as LE and define __LITTLE_ENDIAN__. This actually changes values of some consts, but fortunately just few of them. --- executor/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor') diff --git a/executor/defs.h b/executor/defs.h index 92bace9b3..5e9897f63 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -100,7 +100,7 @@ #if GOARCH_ppc64le #define GOARCH "ppc64le" -#define SYZ_REVISION "84345e4c9ab2df204d5e2216e1ee380880b1e68c" +#define SYZ_REVISION "dd812ad5534b0a3035b3aecdae9fb6d47a6e2ffa" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 -- cgit mrf-deployment