aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorPimyn Girgis <pimyn@google.com>2025-11-27 15:31:51 +0000
committerTahuti <pimyn@google.com>2025-12-03 09:02:54 +0000
commit42a04216dd856c12e723e48930e85d63998e4eda (patch)
tree52e4b5a2587b092a9307a89496dc661f82734b91 /sys
parent7cea5f2c6000fc39497806150333e1dacee708e6 (diff)
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.
Diffstat (limited to 'sys')
-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",