From: Ian Lance Taylor Date: Wed, 14 Sep 2011 22:33:37 +0000 (-0700) Subject: debug/elf: permit another case of SHT_NOBITS section overlap in test X-Git-Tag: weekly.2011-09-16~23 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e076c502dda7da7308599c20c5f482e67edf6855;p=gostls13.git debug/elf: permit another case of SHT_NOBITS section overlap in test Lets test pass when using gccgo. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5018046 --- diff --git a/src/pkg/debug/elf/file_test.go b/src/pkg/debug/elf/file_test.go index 451d3d5147..98f2723c86 100644 --- a/src/pkg/debug/elf/file_test.go +++ b/src/pkg/debug/elf/file_test.go @@ -227,6 +227,9 @@ func TestNoSectionOverlaps(t *testing.T) { } for i, si := range f.Sections { sih := si.SectionHeader + if sih.Type == SHT_NOBITS { + continue + } for j, sj := range f.Sections { sjh := sj.SectionHeader if i == j || sjh.Type == SHT_NOBITS || sih.Offset == sjh.Offset && sih.Size == 0 {