]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link, cmd/internal/goobj2: adopt new DWARF compilation unit logic...
authorCherry Zhang <cherryyz@google.com>
Mon, 30 Sep 2019 15:43:41 +0000 (11:43 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 9 Oct 2019 21:05:20 +0000 (21:05 +0000)
commit65a649c565d06c14ae8e3a5042c4dec7f70af612
tree329a5306112d699c8f8951554a00d4dba4daa577
parent0d7404c8527dc45469644c0f6b4becfd59c2a4d9
[dev.link] cmd/link, cmd/internal/goobj2: adopt new DWARF compilation unit logic with new object file

The dev.link branch was not sync'd with the new DWARF compilation
unit logic change on the master branch, and the new object file
format didn't support this.

This CL adds the new DWARF CU and file table support to the new
object file format. In the old object file, the DWARF file table
is a separate section. For now, we do the same with the new
object file, keeping it as a separate block.

While here, also refactor the loader code so it is easier for the
loader to carry per-object informations.

Change-Id: I4c317941fc0a5831acbc11ce8c2a8b7421471372
Reviewed-on: https://go-review.googlesource.com/c/go/+/198198
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/internal/goobj2/objfile.go
src/cmd/internal/obj/objfile2.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/objfile/objfile2.go
src/cmd/link/internal/sym/library.go