1
0
mirror of https://github.com/golang/go synced 2024-11-21 15:34:45 -07:00

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
This commit is contained in:
Ian Lance Taylor 2011-09-14 15:33:37 -07:00
parent 3be088e354
commit e076c502dd

View File

@ -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 {