]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: host linking support for linux/amd64
authorRuss Cox <rsc@golang.org>
Thu, 7 Mar 2013 14:19:02 +0000 (09:19 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 7 Mar 2013 14:19:02 +0000 (09:19 -0500)
commit60f783d92bc07fa7ca78e8efccbbc841d9f9cbcb
tree8677601561fbb007429777514911480aa4c871fd
parent8aafb44b0bbba85535feb67e7ae0f4f254524c0f
cmd/ld: host linking support for linux/amd64

Still to do: non-linux and non-amd64.
It may work on other ELF-based amd64 systems too, but untested.

"go test -ldflags -hostobj $GOROOT/misc/cgo/test" passes.

Much may yet change, but this seems a reasonable checkpoint.

R=iant
CC=golang-dev
https://golang.org/cl/7369057
21 files changed:
src/cmd/5l/asm.c
src/cmd/5l/l.h
src/cmd/5l/obj.c
src/cmd/6l/asm.c
src/cmd/6l/l.h
src/cmd/6l/obj.c
src/cmd/8l/asm.c
src/cmd/8l/l.h
src/cmd/8l/obj.c
src/cmd/ld/data.c
src/cmd/ld/dwarf.c
src/cmd/ld/go.c
src/cmd/ld/ldelf.c
src/cmd/ld/ldmacho.c
src/cmd/ld/lib.c
src/cmd/ld/lib.h
src/cmd/ld/macho.c
src/cmd/ld/pe.c
src/cmd/ld/symtab.c
src/pkg/runtime/cgo/callbacks.c
src/pkg/runtime/cgocall.c