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

@@ -212,7 +212,7 @@ impl ObjSection {
fn section_kind_for_section(section_name: &str) -> Result<ObjSectionKind> {
Ok(match section_name {
".init" | ".text" | ".dbgtext" | ".vmtext" => ObjSectionKind::Code,
".ctors" | ".dtors" | ".rodata" | ".sdata2" | "extab" | "extabindex" => {
".ctors" | ".dtors" | ".rodata" | ".sdata2" | "extab" | "extabindex" | ".BINARY" => {
ObjSectionKind::ReadOnlyData
}
".bss" | ".sbss" | ".sbss2" => ObjSectionKind::Bss,