-
- Downloads
[dev.link] cmd/link: add generator symbols
Create a new class of symbols internal to the linker. These symbols live in the Loader, and are real smybols, but have no data, only size. After symbols are allocated in the binary in asmb() a function is called that is responsible for filling in the data. This allows the linker to create large symbols, but not pay the price on the heap memory. Change-Id: Ib4291fc6e578478057ed2ec163d7b27426f1d5ff Reviewed-on: https://go-review.googlesource.com/c/go/+/239280 Run-TryBot: Jeremy Faller <jeremy@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by:Than McIntosh <thanm@google.com> Reviewed-by:
Cherry Zhang <cherryyz@google.com>
Showing
- src/cmd/link/internal/ld/link.go 31 additions, 0 deletionssrc/cmd/link/internal/ld/link.go
- src/cmd/link/internal/ld/main.go 4 additions, 0 deletionssrc/cmd/link/internal/ld/main.go
- src/cmd/link/internal/ld/outbuf.go 14 additions, 6 deletionssrc/cmd/link/internal/ld/outbuf.go
- src/cmd/link/internal/ld/sym.go 1 addition, 0 deletionssrc/cmd/link/internal/ld/sym.go
- src/cmd/link/internal/loader/loader.go 24 additions, 0 deletionssrc/cmd/link/internal/loader/loader.go
Please register or sign in to comment