aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/syz-extract/linux.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/syz-extract/linux.go b/sys/syz-extract/linux.go
index 28354dcbb..d4de1874a 100644
--- a/sys/syz-extract/linux.go
+++ b/sys/syz-extract/linux.go
@@ -132,6 +132,10 @@ func (*linux) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint
sourceDir := arch.sourceDir
buildDir := arch.buildDir
args := []string{
+ // EFI kernel headers use wide character constants.
+ "-fshort-wchar",
+ // Avoid implicit declaration errors.
+ "-Wno-implicit-function-declaration",
// This makes the build completely hermetic, only kernel headers are used.
"-nostdinc",
"-w", "-fmessage-length=0",