]> Cypherpunks repositories - gostls13.git/commit
cmd/link: implement and test automatic symbols
authorRuss Cox <rsc@golang.org>
Tue, 14 Jan 2014 04:07:57 +0000 (23:07 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 14 Jan 2014 04:07:57 +0000 (23:07 -0500)
commit7cecac3cbbd16baf80c9d15b92fc55444bf2870e
treeb989cb6afd905b2389ebec48c7a89a39321b1555
parent9c1aa658bfb73018805fde0c6224a289aced0d03
cmd/link: implement and test automatic symbols

Related changes included in this CL:

 - Add explicit start symbol to Prog.
 - Add omitRuntime bool to Prog.
 - Introduce p.Packages[""] to hold automatic symbols
 - Add SymOrder to Prog to preserve symbol order.
 - Add layout test (and fix bug that was putting everything in text section).

R=iant
CC=golang-codereviews
https://golang.org/cl/51260045
17 files changed:
src/cmd/link/auto.go [new file with mode: 0644]
src/cmd/link/auto_test.go [new file with mode: 0644]
src/cmd/link/layout.go
src/cmd/link/layout_test.go [new file with mode: 0644]
src/cmd/link/link_test.go
src/cmd/link/load.go
src/cmd/link/macho.go
src/cmd/link/macho_test.go
src/cmd/link/prog.go
src/cmd/link/scan.go
src/cmd/link/testdata/autosection.6 [new file with mode: 0644]
src/cmd/link/testdata/autosection.s [new file with mode: 0644]
src/cmd/link/testdata/autoweak.6 [new file with mode: 0644]
src/cmd/link/testdata/autoweak.s [new file with mode: 0644]
src/cmd/link/testdata/layout.6 [new file with mode: 0644]
src/cmd/link/testdata/layout.s [new file with mode: 0644]
src/cmd/link/write.go