Skip to content

Commit 881d540

Browse files
committed
cmd/link: fix SLIBFUZZER_EXTRA_COUNTER symbol handling
Found this while deleting the old code. This should be data2. Change-Id: I1232fac22ef63bb3a3f25a0558537cc371af3bd9 Reviewed-on: https://go-review.googlesource.com/c/go/+/234098 Run-TryBot: Cherry Zhang <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Than McIntosh <[email protected]> Reviewed-by: Jeremy Faller <[email protected]>
1 parent f474e9e commit 881d540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/link/internal/ld/data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ func (state *dodataState) allocateDataSections2(ctxt *Link) {
17301730
ldr.SetSymSect(ldr.LookupOrCreateSym("runtime.end", 0), sect)
17311731

17321732
// Coverage instrumentation counters for libfuzzer.
1733-
if len(state.data[sym.SLIBFUZZER_EXTRA_COUNTER]) > 0 {
1733+
if len(state.data2[sym.SLIBFUZZER_EXTRA_COUNTER]) > 0 {
17341734
state.allocateNamedSectionAndAssignSyms2(&Segdata, "__libfuzzer_extra_counters", sym.SLIBFUZZER_EXTRA_COUNTER, sym.Sxxx, 06)
17351735
}
17361736

0 commit comments

Comments
 (0)