Commit e076c502 authored by Ian Lance Taylor's avatar Ian Lance Taylor

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
parent 3be088e3
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment