mirror of
https://github.com/golang/go
synced 2024-11-22 02:54:39 -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:
parent
3be088e354
commit
e076c502dd
@ -227,6 +227,9 @@ func TestNoSectionOverlaps(t *testing.T) {
|
|||||||
}
|
}
|
||||||
for i, si := range f.Sections {
|
for i, si := range f.Sections {
|
||||||
sih := si.SectionHeader
|
sih := si.SectionHeader
|
||||||
|
if sih.Type == SHT_NOBITS {
|
||||||
|
continue
|
||||||
|
}
|
||||||
for j, sj := range f.Sections {
|
for j, sj := range f.Sections {
|
||||||
sjh := sj.SectionHeader
|
sjh := sj.SectionHeader
|
||||||
if i == j || sjh.Type == SHT_NOBITS || sih.Offset == sjh.Offset && sih.Size == 0 {
|
if i == j || sjh.Type == SHT_NOBITS || sih.Offset == sjh.Offset && sih.Size == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user