]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.link] cmd/link: better naming for Loader container/subsym methods, part 1 of 2
authorThan McIntosh <thanm@google.com>
Tue, 30 Jun 2020 15:30:28 +0000 (11:30 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 6 Jul 2020 22:56:23 +0000 (22:56 +0000)
commit3c3cc195643d441c09ad102e8e6f7412d975102b
treee7cc554f26f3c7d61a4be63decfc34e06cc6225d
parent8c46cb1bf534adb169a8789489e85bf777655066
[dev.link] cmd/link: better naming for Loader container/subsym methods, part 1 of 2

Introduce a new loader method "AddInteriorSym" to be used when
establishing container/containee symbol relationships for host object
sub-symbols and GOT/dynamic sub-symbols.

Interior symbols are employed in situations where you have a
"container" or "payload" symbol that has content, and then a series of
"interior" sub-symbols that point into a portion of the container
symbol's content. Each interior symbol will typically have a useful
name / size / value, but no content of its own. From a symbol table
perspective the container symbol is anonymous, but the interior
symbols are added to the output symbol table.

Change-Id: I919ed5dbbfe2ef2c9a76214f7ea9b384a1be6297
Reviewed-on: https://go-review.googlesource.com/c/go/+/240508
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/amd64/asm.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/loadelf/ldelf.go
src/cmd/link/internal/loader/loader.go
src/cmd/link/internal/loader/loader_test.go
src/cmd/link/internal/loader/symbolbuilder.go
src/cmd/link/internal/loadmacho/ldmacho.go
src/cmd/link/internal/loadpe/ldpe.go