From 70a1efbb5c2f6b7dd355cfd905ffdd13f35ac756 Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Thu, 26 Sep 2019 10:01:42 -0400 Subject: cmd/link: remove reading/processing of function Autom records Remove linker reading and processing of automs (no longer needed, now that the compiler is emitting R_USETYPE relocations on functions). So as to avoid changing the object file format, the object still contains a count of automs, but this count is required to be zero. Updates #34554. Change-Id: I10230e191057c5c5705541eeb06f747d5f73c42d Reviewed-on: https://go-review.googlesource.com/c/go/+/197500 Reviewed-by: Jeremy Faller --- src/cmd/link/internal/ld/deadcode.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/cmd/link/internal/ld/deadcode.go') diff --git a/src/cmd/link/internal/ld/deadcode.go b/src/cmd/link/internal/ld/deadcode.go index 418703cb2f..c880c0da01 100644 --- a/src/cmd/link/internal/ld/deadcode.go +++ b/src/cmd/link/internal/ld/deadcode.go @@ -270,12 +270,6 @@ func (d *deadcodepass) flood() { if d.ctxt.Debugvlog > 1 { d.ctxt.Logf("marktext %s\n", s.Name) } - if s.FuncInfo != nil { - for _, a := range s.FuncInfo.Autom { - d.mark(a.Gotype, s) - } - } - } if strings.HasPrefix(s.Name, "type.") && s.Name[5] != '.' { -- cgit v1.3-5-g9baa