diff options
| author | Andrew Turner <andrew.turner4@arm.com> | 2023-01-19 10:08:03 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2023-03-01 10:47:59 +0100 |
| commit | 378069ee4102bcdd4df489fb61878886a3317d7b (patch) | |
| tree | 85300730f76cdf19fd823856612db91a60e5677a | |
| parent | d549117b0d7e71c7edc70a0a0b5c02d5f6faefe3 (diff) | |
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.
| -rw-r--r-- | sys/syz-extract/freebsd.go | 7 |
1 files changed, 4 insertions, 3 deletions
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 <sys/syscall.h>", - DeclarePrintf: true, - TargetEndian: arch.target.HostEndian, + AddSource: "#include <sys/syscall.h>", + DeclarePrintf: true, + ExtractFromELF: true, + TargetEndian: arch.target.HostEndian, } cc := arch.target.CCompiler return extract(info, cc, args, params) |
