Support .BINARY section

Resolves #12
This commit is contained in:
2023-11-29 18:09:53 -05:00
parent 4cb6f4f85d
commit 5c22c8850e
3 changed files with 4 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ fn section_kind(section: &object::Section) -> SectionKind {
.and_then(|name| match name {
".init" | ".text" | ".vmtext" | ".dbgtext" => Some(SectionKind::Text),
".ctors" | ".dtors" | ".data" | ".rodata" | ".sdata" | ".sdata2" | "extab"
| "extabindex" => Some(SectionKind::Data),
| "extabindex" | ".BINARY" => Some(SectionKind::Data),
".bss" | ".sbss" | ".sbss2" => Some(SectionKind::UninitializedData),
_ => None,
})