aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/debug
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2011-09-14 15:33:37 -0700
committerIan Lance Taylor <iant@golang.org>2011-09-14 15:33:37 -0700
commite076c502dda7da7308599c20c5f482e67edf6855 (patch)
treeb5a9288e63aa8ec1723e054c432633213bb4b434 /src/pkg/debug
parent3be088e35472332a0707479cac616199275e4656 (diff)
downloadgo-e076c502dda7da7308599c20c5f482e67edf6855.tar.xz
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
Diffstat (limited to 'src/pkg/debug')
-rw-r--r--src/pkg/debug/elf/file_test.go3
1 files changed, 3 insertions, 0 deletions
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 {