From 072c7d4969862c84430cc2daef20a8f7f3ba78a2 Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Tue, 19 Apr 2022 19:41:40 -0400 Subject: cmd/compile,cmd/link: hooks for identifying coverage counters Add a new "coverage counter" classification for variables to be used for storing code coverage counter values (somewhat in the same way that we identify fuzzer counters). Tagging such variables allows us to aggregate them in the linker, and to treat updates specially. Updates #51430. Change-Id: Ib49fb05736ffece98bcc2f7a7c37e991b7f67bbb Reviewed-on: https://go-review.googlesource.com/c/go/+/401235 Reviewed-by: David Chase Run-TryBot: Than McIntosh TryBot-Result: Gopher Robot --- src/runtime/symtab.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime/symtab.go') diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 79ca5cfc44..2da9a59b7e 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -427,6 +427,7 @@ type moduledata struct { data, edata uintptr bss, ebss uintptr noptrbss, enoptrbss uintptr + covctrs, ecovctrs uintptr end, gcdata, gcbss uintptr types, etypes uintptr rodata uintptr -- cgit v1.3