diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-10-28 19:04:28 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-10-28 19:10:11 +0100 |
| commit | 6e045ca26d969f7465819984668417c9c3b47520 (patch) | |
| tree | 0048f316cbc9cabedcc6680294b9adfa1d85cae0 /sys/linux/init.go | |
| parent | 6d8b3311b9280ec497cd67855653c3e452ce02c9 (diff) | |
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.
Diffstat (limited to 'sys/linux/init.go')
| -rw-r--r-- | sys/linux/init.go | 5 |
1 files changed, 3 insertions, 2 deletions
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) |
