syzkaller/sys/syz-extract
Dmitry Vyukov 000f08bb18 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.
2019-05-13 10:26:57 +02:00
..
akaros.go sys/syz-extract: add -includedirs option 2019-01-19 12:30:10 +01:00
extract.go sys/linux: regenerate and fix const files 2019-03-14 13:40:11 +01:00
fetch.go sys/linux: switch ppc64le to little-endian 2019-05-13 10:26:57 +02:00
freebsd.go sys/syz-extract define GENOFFSET when processing FreeBSD sources 2019-04-30 17:55:00 +02:00
fuchsia.go sys/syz-extract: fix too long line 2019-03-27 09:44:01 +01:00
linux.go sys/linux: switch ppc64le to little-endian 2019-05-13 10:26:57 +02:00
netbsd.go sys/syz-extract: add -includedirs option 2019-01-19 12:30:10 +01:00
openbsd.go sys/syz-extract: add -includedirs option 2019-01-19 12:30:10 +01:00
trusty.go sys/syz-extract: add -includedirs option 2019-01-19 12:30:10 +01:00
windows.go syz-extract: select declaring printf or not 2017-11-06 11:27:45 +03:00