Skip to content

Commit

Permalink
sys/syz-extract: fix linux/arm
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dvyukov committed Apr 2, 2018
1 parent 729f261 commit 374050e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/syz-extract/fetch.go
Expand Up @@ -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}}
Expand Down

0 comments on commit 374050e

Please sign in to comment.