]> Cypherpunks repositories - gostls13.git/commit
6l/5l: PIC and shared library support for the linkers.
authorElias Naur <elias.naur@gmail.com>
Wed, 30 Jan 2013 16:46:56 +0000 (08:46 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 30 Jan 2013 16:46:56 +0000 (08:46 -0800)
commit3bdeaf2a64a9731fc664b6d0fc36a70e7a7e0a05
tree1dfd7309c7b3e2b196eccd42d9e86c307a771316
parent6adbc545f69a924fc5bd98eae14bda80c47d118b
6l/5l: PIC and shared library support for the linkers.

Added the -shared flag to 5l/6l to output a PIC executable with the required
dynamic relocations and RIP-relative addressing in machine code.
Added dummy support to 8l to avoid compilation errors

See also:
https://golang.org/cl/6822078
https://golang.org/cl/7064048

and

https://groups.google.com/d/topic/golang-nuts/P05BDjLcQ5k/discussion

R=rsc, iant
CC=golang-dev
https://golang.org/cl/6926049
20 files changed:
src/cmd/5l/asm.c
src/cmd/5l/l.h
src/cmd/5l/list.c
src/cmd/5l/noop.c
src/cmd/5l/obj.c
src/cmd/5l/optab.c
src/cmd/5l/span.c
src/cmd/6l/asm.c
src/cmd/6l/l.h
src/cmd/6l/obj.c
src/cmd/6l/span.c
src/cmd/8l/asm.c
src/cmd/8l/l.h
src/cmd/8l/obj.c
src/cmd/ld/data.c
src/cmd/ld/elf.c
src/cmd/ld/go.c
src/cmd/ld/lib.c
src/cmd/ld/lib.h
src/cmd/ld/symtab.c