summaryrefslogtreecommitdiff
path: root/src/cmd/8l/doc.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-02-07 16:46:33 -0500
committerRuss Cox <rsc@golang.org>2012-02-07 16:46:33 -0500
commit131a574bc86f126434e7eb8903635cd74c70d540 (patch)
tree6e4571e3fd13a094e52e58589ea26fcad06d33c2 /src/cmd/8l/doc.go
parent0af512893240b410ff0032495a66e83aa24218be (diff)
downloadgo-131a574bc86f126434e7eb8903635cd74c70d540.tar.gz
5l, 6l, 8l: implement -X flag
R=golang-dev, iant CC=golang-dev http://codereview.appspot.com/5643050
Diffstat (limited to 'src/cmd/8l/doc.go')
-rw-r--r--src/cmd/8l/doc.go47
1 files changed, 3 insertions, 44 deletions
diff --git a/src/cmd/8l/doc.go b/src/cmd/8l/doc.go
index edd683823..12301d4f2 100644
--- a/src/cmd/8l/doc.go
+++ b/src/cmd/8l/doc.go
@@ -4,51 +4,10 @@
/*
-8l is a modified version of the Plan 9 linker. The original is documented at
-
- http://plan9.bell-labs.com/magic/man2html/1/2l
-
-Its target architecture is the x86, referred to by these tools for historical reasons as 386.
-It reads files in .8 format generated by 8g, 8c, and 8a and emits
-a binary called 8.out by default.
-
-Major changes include:
- - support for ELF and Mach-O binary files
- - support for segmented stacks (this feature is implemented here, not in the compilers).
-
-
-Original options are listed in the link above.
-
-Options new in this version:
-
--d
- Elide the dynamic linking header. With this option, the binary
- is statically linked and does not refer to dynld. Without this option
- (the default), the binary's contents are identical but it is loaded with dynld.
--Hplan9
- Write Plan 9 32-bit format binaries (default when $GOOS is plan9)
--Hdarwin
- Write Apple Mach-O binaries (default when $GOOS is darwin)
--Hlinux
- Write Linux ELF binaries (default when $GOOS is linux)
--Hfreebsd
- Write FreeBSD ELF binaries (default when $GOOS is freebsd)
--Hnetbsd
- Write NetBSD ELF binaries (default when $GOOS is netbsd)
--Hopenbsd
- Write OpenBSD ELF binaries (default when $GOOS is openbsd)
--Hwindows
- Write Windows PE32 binaries (default when $GOOS is windows)
--I interpreter
- Set the ELF dynamic linker to use.
--L dir1 -L dir2
- Search for libraries (package files) in dir1, dir2, etc.
- The default is the single location $GOROOT/pkg/$GOOS_386.
--r dir1:dir2:...
- Set the dynamic linker search path when using ELF.
--V
- Print the linker version.
+8l is the linker for the 32-bit x86.
+The $GOARCH for these tools is 386.
+The flags are documented in ../ld/doc.go.
*/
package documentation