From 42a04216dd856c12e723e48930e85d63998e4eda Mon Sep 17 00:00:00 2001 From: Pimyn Girgis Date: Thu, 27 Nov 2025 15:31:51 +0000 Subject: sys/syz-extract: add required compiler flags Add compiler flags to syz-extract to handle wide character constants and suppress implicit function declaration warnings in kernel headers. --- sys/syz-extract/linux.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys') 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", -- cgit mrf-deployment