From 378069ee4102bcdd4df489fb61878886a3317d7b Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Thu, 19 Jan 2023 10:08:03 +0000 Subject: sys/syz-extract: extract FreeBSD syscalls from elf We may not be able to build an executable for all architectures. Switch to extracting the needed information from an elf object file. --- sys/syz-extract/freebsd.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/syz-extract/freebsd.go b/sys/syz-extract/freebsd.go index e4de34069..2660e832c 100644 --- a/sys/syz-extract/freebsd.go +++ b/sys/syz-extract/freebsd.go @@ -66,9 +66,10 @@ func (*freebsd) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]ui } args = append(args, arch.target.CFlags...) params := &extractParams{ - AddSource: "#include ", - DeclarePrintf: true, - TargetEndian: arch.target.HostEndian, + AddSource: "#include ", + DeclarePrintf: true, + ExtractFromELF: true, + TargetEndian: arch.target.HostEndian, } cc := arch.target.CCompiler return extract(info, cc, args, params) -- cgit mrf-deployment