diff options
| author | Than McIntosh <thanm@golang.org> | 2024-11-17 13:20:17 -0500 |
|---|---|---|
| committer | Than McIntosh <thanm@golang.org> | 2025-02-22 13:25:22 -0800 |
| commit | 38825ef34715f024be0767f2bb94bb8c299f6f6b (patch) | |
| tree | 81b33ac5a4df0e6e9aa0c119130dce21997df4e2 /src/cmd/link | |
| parent | f062d7b10b276c1b698819f492e4b4754e160ee3 (diff) | |
| download | go-38825ef34715f024be0767f2bb94bb8c299f6f6b.tar.xz | |
cmd/link, cmd/internal/objabi: remove R_DWARFFILEREF relocation type
Get rid of the R_DWARFFILEREF relocation type -- we have not used this
relocation for a while now, ever since jfaller's revamp of the DWARF
line table file section in Go 1.15. No change in compiler or linker
functionality; this is purely a dead code cleanup.
Change-Id: I178760c87f3aa79694cfabe7364ca382605c6975
Reviewed-on: https://go-review.googlesource.com/c/go/+/633876
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/link')
| -rw-r--r-- | src/cmd/link/internal/ld/data.go | 4 | ||||
| -rw-r--r-- | src/cmd/link/internal/ld/pe.go | 3 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/cmd/link/internal/ld/data.go b/src/cmd/link/internal/ld/data.go index a6b94a829f..deff909e5c 100644 --- a/src/cmd/link/internal/ld/data.go +++ b/src/cmd/link/internal/ld/data.go @@ -590,10 +590,6 @@ func (st *relocSymState) relocsym(s loader.Sym, P []byte) { nExtReloc++ continue - case objabi.R_DWARFFILEREF: - // We don't renumber files in dwarf.go:writelines anymore. - continue - case objabi.R_CONST: o = r.Add() diff --git a/src/cmd/link/internal/ld/pe.go b/src/cmd/link/internal/ld/pe.go index d4d6abe153..920ee7b573 100644 --- a/src/cmd/link/internal/ld/pe.go +++ b/src/cmd/link/internal/ld/pe.go @@ -1582,9 +1582,6 @@ func addPEBaseRelocSym(ldr *loader.Loader, s loader.Sym, rt *peBaseRelocTable) { if r.Siz() == 0 { // informational relocation continue } - if r.Type() == objabi.R_DWARFFILEREF { - continue - } rs := r.Sym() if rs == 0 { continue |
