]> Cypherpunks repositories - gostls13.git/commit
ld/6l/8l: First pass at changes to the linker to support NetBSD binaries.
authorChristopher Nielsen <m4dh4tt3r@gmail.com>
Mon, 12 Dec 2011 20:42:11 +0000 (15:42 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 12 Dec 2011 20:42:11 +0000 (15:42 -0500)
commit420fe2292139123a31dbd90420417f63d4191c76
tree77a1765c6b332d0630668602850f81b30c84c0d3
parent728c16cf13ade25787c5c8f6bf89a2839411ec42
ld/6l/8l: First pass at changes to the linker to support NetBSD binaries.

This will not currently create valid NetBSD binaries because NetBSD requires
an ELF note section to run, otherwise the kernel will throw ENOEXEC. I was
unable to determine an elegant way to add the section, so I am submitting
what I have.

References:
http://www.netbsd.org/docs/kernel/elf-notes.html
http://mail-index.netbsd.org/netbsd-bugs/2001/08/03/0012.html

R=rsc
CC=golang-dev
https://golang.org/cl/5472049
src/cmd/6l/asm.c
src/cmd/6l/doc.go
src/cmd/6l/obj.c
src/cmd/6l/pass.c
src/cmd/8l/asm.c
src/cmd/8l/doc.go
src/cmd/8l/obj.c
src/cmd/cc/godefs.c
src/cmd/ld/lib.c