From 6e045ca26d969f7465819984668417c9c3b47520 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 28 Oct 2018 19:04:28 +0100 Subject: sys/syz-extract: support missing arch headers The latest Linux kernel misses some arch-specific headers on some archs: asm/a.out.h asm/prctl.h asm/mce.h Support that. --- sys/linux/init.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/linux/init.go') diff --git a/sys/linux/init.go b/sys/linux/init.go index 09fca92fc..a0e99f3de 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -27,11 +27,12 @@ func InitTarget(target *prog.Target) { FAN_ACCESS_PERM: target.GetConst("FAN_ACCESS_PERM"), PTRACE_TRACEME: target.GetConst("PTRACE_TRACEME"), CLOCK_REALTIME: target.GetConst("CLOCK_REALTIME"), - ARCH_SET_FS: target.GetConst("ARCH_SET_FS"), - ARCH_SET_GS: target.GetConst("ARCH_SET_GS"), AF_NFC: target.GetConst("AF_NFC"), AF_LLC: target.GetConst("AF_LLC"), AF_BLUETOOTH: target.GetConst("AF_BLUETOOTH"), + // These are not present on all arches. + ARCH_SET_FS: target.ConstMap["ARCH_SET_FS"], + ARCH_SET_GS: target.ConstMap["ARCH_SET_GS"], } target.MakeMmap = targets.MakePosixMmap(target) -- cgit mrf-deployment