OS Manuals

/usr/bin/asm

standalone go tool asm

From go-1.24-asm 1.24.13-r3 (os), captured 2026-11-05 by running asm --help (exit 2). permalink

usage: asm [options] file.s ...
Flags:
  -D value
    	predefined symbol with optional simple value -D=identifier=value; can be set multiple times
  -I value
    	include directory; can be set multiple times
  -S	print assembly and machine code
  -V	print version and exit
  -d value
    	enable debugging settings; try -d help
  -debug
    	dump instructions as they are parsed
  -dynlink
    	support references to Go symbols defined in other shared libraries
  -e	no limit on number of errors reported
  -gensymabis
    	write symbol ABI information to output file, don't assemble
  -linkshared
    	generate code that will be linked against Go shared libraries
  -o string
    	output file; default foo.o for /a/b/c/foo.s as first argument
  -p string
    	set expected package import to path (default "<unlinkable>")
  -shared
    	generate code that can be linked into a shared library
  -spectre list
    	enable spectre mitigations in list (all, ret)
  -trimpath string
    	remove prefix from recorded source file paths
  -v	print debug output
Options (16)
OptionDescriptionSource
-D valuepredefined symbol with optional simple value -D=identifier=value;help
-I valueinclude directory;help
-Sprint assembly and machine codehelp
-Vprint version and exithelp
-d valueenable debugging settings;help
-debugdump instructions as they are parsedhelp
-dynlinksupport references to Go symbols defined in other shared librarieshelp
-eno limit on number of errors reportedhelp
-gensymabiswrite symbol ABI information to output file, don't assemblehelp
-linksharedgenerate code that will be linked against Go shared librarieshelp
-o stringoutput file;help
-p stringset expected package import to path (default "<unlinkable>")help
-sharedgenerate code that can be linked into a shared libraryhelp
-spectre listenable spectre mitigations in list (all, ret)help
-trimpath stringremove prefix from recorded source file pathshelp
-vprint debug outputhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.