diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-04-02 19:39:01 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-04-02 20:09:30 +0200 |
| commit | 374050e90404a9eeea577d7c97fbc6ef0dacd478 (patch) | |
| tree | a039d72b44efc9832287d53c3a8bade942caee63 | |
| parent | 729f2610570e13a0516327ab06706ba3fc90bcb8 (diff) | |
sys/syz-extract: fix linux/arm
At some point extract for linux/arm started to fail with:
extracting from key.txt
failed to run compiler: exit status 1
/tmp/ccT6o7iZ.s: Assembler messages:
/tmp/ccT6o7iZ.s:4: Error: unknown pseudo-op: `.syntax'
This is caused by arch/arm/include/asm/unified.h:
__asm__(".syntax unified");
Ignore all __asm__ directives as we are cross compiling.
| -rw-r--r-- | sys/syz-extract/fetch.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/syz-extract/fetch.go b/sys/syz-extract/fetch.go index 15b49864c..77410dd55 100644 --- a/sys/syz-extract/fetch.go +++ b/sys/syz-extract/fetch.go @@ -133,6 +133,8 @@ func compile(cc string, args []string, data *CompileData) (bin string, out []byt } var srcTemplate = template.Must(template.New("").Parse(` +#define __asm__(...) + {{range $incl := $.Includes}} #include <{{$incl}}> {{end}} |
