waterbox: invis section tweak (#3580)

don't fail when a 0 byte section starts at the same place as invis
This commit is contained in:
nattthebear 2023-03-14 21:02:38 -04:00 committed by GitHub
parent d9ac4166cf
commit 91e6d8023a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -112,7 +112,7 @@ impl ElfLoader {
return Err(anyhow!("When aligned, {} partially overlaps .invis from above -- check linkscript.", s.name))
}
} else {
if s.name != ".invis" {
if s.addr.align_expand().size != 0 && s.name != ".invis" {
return Err(anyhow!("When aligned, {} partially overlays .invis -- check linkscript", s.name))
}
}