@@ -16,10 +16,8 @@ Usage:
1616Flags:
1717
1818-B note
19- Add an ELF_NT_GNU_BUILD_ID note when using ELF.
20- The value should start with 0x and be an even number of hex digits.
21- Alternatively, you can pass "gobuildid" in order to derive the
22- GNU build ID from the Go build ID.
19+ Set ELF NT_GNU_BUILD_ID note or Mach-O UUID.
20+ Use "gobuildid" to derive it from the Go build ID, or "none" to disable it.
2321-E entry
2422Set entry symbol name.
2523-H type
3331after consulting $GOROOT/pkg/$GOOS_$GOARCH.
3432-R quantum
3533Set address rounding quantum.
34+ -D address
35+ Set the start address of data symbols.
3636-T address
3737Set the start address of text symbols.
3838-V
@@ -53,6 +53,43 @@ Flags:
5353Record id as Go toolchain build id.
5454-buildmode mode
5555Set build mode (default exe).
56+
57+ -a
58+ No-op (deprecated).
59+
60+ -n
61+ No-op (deprecated).
62+
63+ -h
64+ Halt on error.
65+
66+ -debugtramp N
67+ Debug trampolines.
68+
69+ -debugtextsize N
70+ Debug text section max size.
71+
72+ -debugnosplit
73+ Dump nosplit call graph.
74+
75+ -strictdups N
76+ Sanity check duplicate symbol contents during object file reading (1=warn, 2=err).
77+
78+ -pruneweakmap
79+ Prune weak mapinit references (default true).
80+
81+ -randlayout value
82+ Randomize function layout.
83+
84+ -capturehostobjs dir
85+ Capture host object files loaded during internal linking into the specified directory.
86+
87+ -benchmark mem|cpu
88+ Set to "mem" or "cpu" to enable phase benchmarking.
89+
90+ -benchmarkprofile base
91+ Emit phase profiles to base_phase.{cpu,mem}prof.
92+
5693-c
5794Dump call graphs.
5895-checklinkname=value
@@ -116,6 +153,8 @@ Flags:
116153Write output to file (default a.out, or a.out.exe on Windows).
117154-pluginpath path
118155The path name used to prefix exported plugin symbols.
156+ -fipso file
157+ Write FIPS module to file.
119158-r dir1:dir2:...
120159Set the ELF dynamic linker search path.
121160-race
0 commit comments