]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/internal/obj: write object file in new format
authorCherry Zhang <cherryyz@google.com>
Thu, 22 Aug 2019 21:26:41 +0000 (17:26 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 3 Oct 2019 18:49:41 +0000 (18:49 +0000)
commit2c484c0356c5e13a480b3842de0d345224a7bbf8
tree46b3db7e02c2b883266bcbe0abfe5c3861afdbef
parenta09cd8ccb372d760bd21d7e56f42b9dbea6ecc2b
[dev.link] cmd/internal/obj: write object file in new format

If -newobj is set, write object file in new format, which uses
indices for symbol references instead of symbol names. The file
format is described at the beginning of
cmd/internal/goobj2/objfile.go.

A new package, cmd/internal/goobj2, is introduced for reading and
writing new object files. (The package name is temporary.) It is
written in a way that trys to make the encoding as regular as
possible, and the reader and writer as symmetric as possible.

This is incomplete, and currently nothing will consume the new
object file.

Change-Id: Ifefedbf6456d760d15a9f40a28af6486c93100fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/196030
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/gc/iexport.go
src/cmd/dist/buildtool.go
src/cmd/internal/goobj2/funcinfo.go [new file with mode: 0644]
src/cmd/internal/goobj2/objfile.go [new file with mode: 0644]
src/cmd/internal/obj/link.go
src/cmd/internal/obj/objfile.go
src/cmd/internal/obj/objfile2.go [new file with mode: 0644]
src/cmd/internal/obj/sym.go