OLD | NEW |
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 5l is a modified version of the Plan 9 linker. The original is documented at | 7 5l 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 |
11 Its target architecture is the ARM, referred to by these tools as arm. | 11 Its target architecture is the ARM, referred to by these tools as arm. |
12 It reads files in .5 format generated by 5g, 5c, and 5a and emits | 12 It reads files in .5 format generated by 5g, 5c, and 5a and emits |
13 a binary called 5.out by default. | 13 a binary called 5.out by default. |
14 | 14 |
15 Major changes include: | 15 Major changes include: |
16 - support for segmented stacks (this feature is implemented here, not in
the compilers). | 16 - support for segmented stacks (this feature is implemented here, not in
the compilers). |
17 | 17 |
18 | 18 |
19 Original options are listed in the link above. | 19 Original options are listed in the link above. |
20 | 20 |
21 Options new in this version: | 21 Options new in this version: |
22 | 22 |
23 -F | 23 -F |
24 Force use of software floating point. | 24 Force use of software floating point. |
25 Also implied by setting GOARM=5 in the environment. | 25 Also implied by setting GOARM=5 in the environment. |
| 26 -Hlinux |
| 27 Write Linux ELF binaries (default when $GOOS is linux) |
26 -I interpreter | 28 -I interpreter |
27 Set the ELF dynamic linker to use. | 29 Set the ELF dynamic linker to use. |
28 -L dir1 -L dir2 | 30 -L dir1 -L dir2 |
29 Search for libraries (package files) in dir1, dir2, etc. | 31 Search for libraries (package files) in dir1, dir2, etc. |
30 The default is the single location $GOROOT/pkg/$GOOS_arm. | 32 The default is the single location $GOROOT/pkg/$GOOS_arm. |
31 -r dir1:dir2:... | 33 -r dir1:dir2:... |
32 Set the dynamic linker search path when using ELF. | 34 Set the dynamic linker search path when using ELF. |
33 -V | 35 -V |
34 Print the linker version. | 36 Print the linker version. |
35 | 37 |
36 */ | 38 */ |
37 package documentation | 39 package documentation |
OLD | NEW |