diff --git a/internal/gocore/process.go b/internal/gocore/process.go index 25d083b..cd44f90 100644 --- a/internal/gocore/process.go +++ b/internal/gocore/process.go @@ -287,7 +287,7 @@ func (p *Process) readSpans(mheap region, arenas []arena) { switch m.Perm() { case core.Read: readOnly += size - case core.Read | core.Exec: + case core.Read | core.Exec, core.Exec: text += size case core.Read | core.Write: if m.CopyOnWrite() {