aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/asm/internal/flags
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2018-10-19 16:24:59 -0400
committerAustin Clements <austin@google.com>2018-11-12 20:46:33 +0000
commitba2e8a629b36e43cc27b23470b631a1dfee0900f (patch)
treec266ff31c4e0b9f4a18f5d1ac55afe2d580c456e /src/cmd/asm/internal/flags
parent52b222055908a3ae23c2a9185e53919fe56b54db (diff)
downloadgo-ba2e8a629b36e43cc27b23470b631a1dfee0900f.tar.xz
cmd/asm: add mode to collect symbol ABIs
This adds a -symabis flag that runs the assembler in a special mode that outputs symbol definition and reference ABIs rather than assembling the code. This uses a fast and somewhat lax parser because the go_asm.h definitions may not be available. For #27539. Change-Id: I248ba0ebab7cc75dcb2a90e82a82eb445da7e88e Reviewed-on: https://go-review.googlesource.com/c/147098 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/asm/internal/flags')
-rw-r--r--src/cmd/asm/internal/flags/flags.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/flags/flags.go b/src/cmd/asm/internal/flags/flags.go
index 6acde29432..752a1d4526 100644
--- a/src/cmd/asm/internal/flags/flags.go
+++ b/src/cmd/asm/internal/flags/flags.go
@@ -22,6 +22,7 @@ var (
Shared = flag.Bool("shared", false, "generate code that can be linked into a shared library")
Dynlink = flag.Bool("dynlink", false, "support references to Go symbols defined in other shared libraries")
AllErrors = flag.Bool("e", false, "no limit on number of errors reported")
+ SymABIs = flag.Bool("symabis", false, "write symbol ABI information to output file, don't assemble")
)
var (