summaryrefslogtreecommitdiff
path: root/src/cmd/8l
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2013-04-01 12:56:18 -0700
committerIan Lance Taylor <iant@golang.org>2013-04-01 12:56:18 -0700
commitacfe3096484b9f9e7e5c8230da02030ed5ee69f2 (patch)
tree85eb42769d5d4c2308571a69f9db55ec85b0f7d9 /src/cmd/8l
parentd7b869ab010caf49eebec304f06f2bb69b18ea29 (diff)
downloadgo-acfe3096484b9f9e7e5c8230da02030ed5ee69f2.tar.gz
cmd/ld: add -extld and -extldflags options
Permits specifying the linker to use, and trailing flags to pass to that linker, when linking in external mode. External mode linking is used when building a package that uses cgo, as described in the cgo docs. Also document -linkmode and -tmpdir. R=golang-dev, r CC=golang-dev https://codereview.appspot.com/8225043
Diffstat (limited to 'src/cmd/8l')
-rw-r--r--src/cmd/8l/obj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/8l/obj.c b/src/cmd/8l/obj.c
index d624a999b..c819b9936 100644
--- a/src/cmd/8l/obj.c
+++ b/src/cmd/8l/obj.c
@@ -113,6 +113,8 @@ main(int argc, char *argv[])
flagcount("a", "disassemble output", &debug['a']);
flagcount("c", "dump call graph", &debug['c']);
flagcount("d", "disable dynamic executable", &debug['d']);
+ flagstr("extld", "linker to run in external mode", &extld);
+ flagstr("extldflags", "flags for external linker", &extldflags);
flagcount("f", "ignore version mismatch", &debug['f']);
flagcount("g", "disable go package data checks", &debug['g']);
flagfn1("linkmode", "mode: set link mode (internal, external, auto)", setlinkmode);