]> Cypherpunks repositories - gostls13.git/commit
5l, 6l, 8l: accumulate data image during import
authorRuss Cox <rsc@golang.org>
Fri, 15 Oct 2010 03:48:40 +0000 (23:48 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 15 Oct 2010 03:48:40 +0000 (23:48 -0400)
commitbe2c2120d0abe8a269c1c96bd6bbaed26a190196
treefd2745226b77eb9ef42983467abe1881cb76d97e
parentdef0d7199bbf7ed8f3a0fbba8110403e8b2985f4
5l, 6l, 8l: accumulate data image during import

Using explicit relocations internally, we can
represent the data for a particular symbol as
an initialized block of memory instead of a
linked list of ADATA instructions.  The real
goal here is to be able to hand off some of the
relocations to the dynamic linker when interacting
with system libraries, but a pleasant side effect is
that the memory image is much more compact
than the ADATA list, so the linkers use less memory.

R=ken2
CC=golang-dev
https://golang.org/cl/2512041
30 files changed:
src/cmd/5l/Makefile
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/pass.c
src/cmd/5l/span.c
src/cmd/5l/symtab.c
src/cmd/5l/thumb.c
src/cmd/6l/Makefile
src/cmd/6l/asm.c
src/cmd/6l/l.h
src/cmd/6l/obj.c
src/cmd/6l/pass.c
src/cmd/6l/span.c
src/cmd/6l/symtab.c
src/cmd/8l/Makefile
src/cmd/8l/asm.c
src/cmd/8l/l.h
src/cmd/8l/obj.c
src/cmd/8l/pass.c
src/cmd/8l/span.c
src/cmd/8l/symtab.c
src/cmd/ld/data.c [new file with mode: 0644]
src/cmd/ld/go.c
src/cmd/ld/lib.c
src/cmd/ld/lib.h
src/cmd/ld/macho.c
src/cmd/ld/pe.c