LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 /* | 5 /* |
6 | 6 |
7 6l is a modified version of the Plan 9 linker. The original is documented at | 7 6l is a modified version of the Plan 9 linker. The original is documented at |
8 | 8 |
9 http://plan9.bell-labs.com/magic/man2html/1/2l | 9 http://plan9.bell-labs.com/magic/man2html/1/2l |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 Options new in this version: | 22 Options new in this version: |
23 | 23 |
24 -d | 24 -d |
25 Elide the dynamic linking header. With this option, the binary | 25 Elide the dynamic linking header. With this option, the binary |
26 is statically linked and does not refer to dynld. Without this option | 26 is statically linked and does not refer to dynld. Without this option |
27 (the default), the binary's contents are identical but it is loaded with
dynld. | 27 (the default), the binary's contents are identical but it is loaded with
dynld. |
28 -e | 28 -e |
29 Emit an extra ELF-compatible symbol table useful with tools such as | 29 Emit an extra ELF-compatible symbol table useful with tools such as |
30 nm, gdb, and oprofile. This option makes the binary file considerably la
rger. | 30 nm, gdb, and oprofile. This option makes the binary file considerably la
rger. |
31 -H6 | 31 -Hdarwin |
32 Write Apple Mach-O binaries (default when $GOOS is darwin) | 32 Write Apple Mach-O binaries (default when $GOOS is darwin) |
33 -H7 | 33 -Hlinux |
34 Write Linux ELF binaries (default when $GOOS is linux) | 34 Write Linux ELF binaries (default when $GOOS is linux) |
| 35 -Hfreebsd |
| 36 Write FreeBSD ELF binaries (default when $GOOS is freebsd) |
| 37 -Hwindows |
| 38 Write Windows PE32+ binaries (default when $GOOS is windows) |
35 -I interpreter | 39 -I interpreter |
36 Set the ELF dynamic linker to use. | 40 Set the ELF dynamic linker to use. |
37 -L dir1 -L dir2 | 41 -L dir1 -L dir2 |
38 Search for libraries (package files) in dir1, dir2, etc. | 42 Search for libraries (package files) in dir1, dir2, etc. |
39 The default is the single location $GOROOT/pkg/$GOOS_amd64. | 43 The default is the single location $GOROOT/pkg/$GOOS_amd64. |
40 -r dir1:dir2:... | 44 -r dir1:dir2:... |
41 Set the dynamic linker search path when using ELF. | 45 Set the dynamic linker search path when using ELF. |
42 -V | 46 -V |
43 Print the linker version. | 47 Print the linker version. |
44 | 48 |
45 | 49 |
46 */ | 50 */ |
47 package documentation | 51 package documentation |
LEFT | RIGHT |