]> Cypherpunks repositories - gostls13.git/commit
5l, 6l, 8l: first pass cleanup
authorRuss Cox <rsc@golang.org>
Wed, 13 Oct 2010 19:51:21 +0000 (15:51 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 13 Oct 2010 19:51:21 +0000 (15:51 -0400)
commit085be1740afeb292c3aeb6c43c002f06884f763a
treeba3978474dc763ff2617ada611e244aedea3ed4e
parentd42903119b1d9540b4d8546b7f19bc93d29cadf8
5l, 6l, 8l: first pass cleanup

* Maintain Sym* list for text with individual
  prog lists instead of using one huge list and
  overloading p->pcond.
* Comment what each file is for.
* Move some output code from span.c to asm.c.
* Move profiling into prof.c, symbol table into symtab.c.
* Move mkfwd to ld/lib.c.
* Throw away dhog dynamic loading code.
* Throw away Alef become.
* Fix printing of WORD instructions in 5l -a.

Goal here is to be able to handle each piece of text or data
as a separate piece, both to make it easier to load the
occasional .o file and also to make it possible to split the
work across multiple threads.

R=ken2, r, ken3
CC=golang-dev
https://golang.org/cl/2335043
42 files changed:
src/cmd/5c/peep.c
src/cmd/5g/list.c
src/cmd/5l/5.out.h
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/prof.c [new file with mode: 0644]
src/cmd/5l/softfloat.c
src/cmd/5l/span.c
src/cmd/5l/symtab.c [new file with mode: 0644]
src/cmd/6l/6.out.h
src/cmd/6l/Makefile
src/cmd/6l/asm.c
src/cmd/6l/l.h
src/cmd/6l/list.c
src/cmd/6l/obj.c
src/cmd/6l/pass.c
src/cmd/6l/prof.c [new file with mode: 0644]
src/cmd/6l/span.c
src/cmd/6l/symtab.c [new file with mode: 0644]
src/cmd/8l/8.out.h
src/cmd/8l/Makefile
src/cmd/8l/asm.c
src/cmd/8l/l.h
src/cmd/8l/list.c
src/cmd/8l/obj.c
src/cmd/8l/optab.c
src/cmd/8l/pass.c
src/cmd/8l/prof.c [new file with mode: 0644]
src/cmd/8l/span.c
src/cmd/8l/symtab.c [new file with mode: 0644]
src/cmd/ld/dwarf.c
src/cmd/ld/elf.c
src/cmd/ld/go.c
src/cmd/ld/lib.c
src/cmd/ld/lib.h
src/cmd/ld/macho.c
src/pkg/debug/gosym/pclinetest.s