Skip to content

Commit

Permalink
runtime: include .data section in globals scan
Browse files Browse the repository at this point in the history
All the globals are between _etext and _end. We were scanning only
between _edata and _end, which mainly consists of the .bss section.
Scanning from _etext ensures that the .data section is also included.

This bug didn't result in issues in CI, but did result in a bug in the
recover branch: #2331. This
patch fixes this bug.
  • Loading branch information
aykevl committed Jun 15, 2022
1 parent 8754f64 commit 8e1550c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/os_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const (
clock_MONOTONIC_RAW = 4
)

//go:extern _edata
//go:extern _etext
var globalsStartSymbol [0]byte

//go:extern _end
Expand Down

0 comments on commit 8e1550c

Please sign in to comment.