docs: state the validation status and correct claims the material contradicts
Assisted-by: DeepSeek V4.1 Flash
This commit is contained in:
+11
-7
@@ -486,10 +486,13 @@ func cmdAsm(args []string) int {
|
||||
With -o the output is written to a file instead. The --format flag selects
|
||||
what is written: raw (the default) concatenates the functions and the data
|
||||
section into one self-consistent image; elf emits a relocatable object
|
||||
(.text/.data sections, a symbol table and one PC32 relocation per
|
||||
static-symbol reference) that links with the system toolchain; goobj emits
|
||||
the Go toolchain's own object format, which cmd/link consumes directly (it
|
||||
requires -p, the package path, and the installed Go toolchain).
|
||||
(.text/.data sections, a symbol table and one relocation per static-symbol
|
||||
reference, in the architecture's own form: R_X86_64_PC32 on amd64,
|
||||
R_AARCH64_*, R_RISCV_* or R_LARCH_* on the others) that links with the
|
||||
system toolchain; goobj emits the Go toolchain's own object format, which
|
||||
cmd/link consumes directly (it requires -p, the package path, and the
|
||||
installed Go toolchain: the object preamble is captured from go tool asm
|
||||
and the format version from go version).
|
||||
`)
|
||||
out := fs.String("o", "", "write the output to this file")
|
||||
format := fs.String("format", "raw", "output format: raw (concatenated image), elf or goobj (Go object)")
|
||||
@@ -793,8 +796,8 @@ func cmdProfile(args []string) int {
|
||||
flagSet := newCommand("profile", "gasm profile <file.s>", `
|
||||
Show the basic-block structure of functions in an assembly file.
|
||||
Lists each function's labels, their offsets, and the block boundaries.
|
||||
This is the static structure; for runtime execution counts, use
|
||||
gasm verify --fuzz which exercises the code paths.
|
||||
This is the static structure; for runtime execution counts use
|
||||
gasm debug --cover, and for input coverage gasm verify --fuzz.
|
||||
`)
|
||||
flagSet.Parse(args)
|
||||
if flagSet.NArg() != 1 {
|
||||
@@ -1033,7 +1036,8 @@ With -profile, the static basic-block structure is listed for each function.
|
||||
|
||||
With -call, a single function is invoked with user-supplied buffers (-buf)
|
||||
instead of the smoke/abi/fuzz sweeps. Useful for partial functions (e.g.
|
||||
decoders) that crash on random input but should succeed on valid data.
|
||||
decoders) that crash on random input but should succeed on valid data. The
|
||||
function named must be NOSPLIT: a function with a stack frame is refused.
|
||||
|
||||
With -save-corpus (and -fuzz), every input that crashes or mismatches is
|
||||
written to the directory as replayable JSON. -replay re-runs saved
|
||||
|
||||
Reference in New Issue
Block a user