]> Cypherpunks repositories - gostls13.git/commit
cmd/link: apply R_DWARFFILEREF later
authorCherry Zhang <cherryyz@google.com>
Thu, 4 Apr 2019 04:30:25 +0000 (00:30 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 19 Apr 2019 18:25:09 +0000 (18:25 +0000)
commit15a31bd9c8e4c7b2de092266ae34e1588dc35270
treed95dc61eacfe1cbd43d47e687e3c7f6ca581927a
parentb2f94d3e88775fae4cf19d34c87a61efa814d079
cmd/link: apply R_DWARFFILEREF later

Apply R_DWARFFILEREF relocations later, along with other
relocations, so that we don't modify symbols' contents before
they are written to the output buffer.

This is in preparation for mmap'ing input files read-only.

Change-Id: I8e9ffb2f05acf8f198589b8770f277beb3847541
Reviewed-on: https://go-review.googlesource.com/c/go/+/170740
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/dwarf.go