Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 43 additions & 4 deletions src/cmd/link/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ Usage:
Flags:
-B note
Add an ELF_NT_GNU_BUILD_ID note when using ELF.
The value should start with 0x and be an even number of hex digits.
Alternatively, you can pass "gobuildid" in order to derive the
GNU build ID from the Go build ID.
Set ELF NT_GNU_BUILD_ID note or Mach-O UUID.
Use "gobuildid" to derive it from the Go build ID, or "none" to disable it.
-E entry
Set entry symbol name.
-H type
Expand All @@ -33,6 +31,8 @@ Flags:
after consulting $GOROOT/pkg/$GOOS_$GOARCH.
-R quantum
Set address rounding quantum.
-D address
Set the start address of data symbols.
-T address
Set the start address of text symbols.
-V
Expand All @@ -53,6 +53,43 @@ Flags:
Record id as Go toolchain build id.
-buildmode mode
Set build mode (default exe).
-a
No-op (deprecated).
-n
No-op (deprecated).
-h
Halt on error.
-debugtramp N
Debug trampolines.
-debugtextsize N
Debug text section max size.
-debugnosplit
Dump nosplit call graph.
-strictdups N
Sanity check duplicate symbol contents during object file reading (1=warn, 2=err).
-pruneweakmap
Prune weak mapinit references (default true).
-randlayout value
Randomize function layout.
-capturehostobjs dir
Capture host object files loaded during internal linking into the specified directory.
-benchmark mem|cpu
Set to "mem" or "cpu" to enable phase benchmarking.
-benchmarkprofile base
Emit phase profiles to base_phase.{cpu,mem}prof.
-c
Dump call graphs.
-checklinkname=value
Expand Down Expand Up @@ -116,6 +153,8 @@ Flags:
Write output to file (default a.out, or a.out.exe on Windows).
-pluginpath path
The path name used to prefix exported plugin symbols.
-fipso file
Write FIPS module to file.
-r dir1:dir2:...
Set the ELF dynamic linker search path.
-race
Expand Down