• Cherry Zhang's avatar
    [dev.link] cmd/internal/obj: write object file in new format · 2c484c03
    Cherry Zhang authored
    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: default avatarThan McIntosh <thanm@google.com>
    2c484c03
sym.go 7.21 KB