From bbad15ae75da01150f3b1fed1a3837f5f5bedc89 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Tue, 23 Jun 2020 17:46:15 +0200 Subject: target: support of big-endian architectures * Introduce the new target flag 'LittleEndian' which specifies of which endianness the target is. * Introduce the new requires flag 'littleendian' for tests to selectively enable/disable tests on either little-endian architectures or big-endian ones. * Disable KD unit test on s390x architecture because the test works only on little-endian architecture. Signed-off-by: Alexander Egorenkov --- sys/syz-extract/linux.go | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/syz-extract/linux.go') diff --git a/sys/syz-extract/linux.go b/sys/syz-extract/linux.go index 7760bcb0f..ef3a9c6d3 100644 --- a/sys/syz-extract/linux.go +++ b/sys/syz-extract/linux.go @@ -179,6 +179,7 @@ func (*linux) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint params := &extractParams{ AddSource: "#include ", ExtractFromELF: true, + TargetEndian: arch.target.HostEndian, } cc := arch.target.CCompiler res, undeclared, err := extract(info, cc, args, params) -- cgit mrf-deployment