Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 527add7

Browse files
ripatel-fdriptl
andauthored
Remove unreachable BssNotSupported error (#462)
Co-authored-by: Richard Patel <[email protected]>
1 parent 7a87580 commit 527add7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/elf.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ pub enum ElfError {
8282
#[error("Multiple or no text sections, consider removing llc option: -function-sections")]
8383
NotOneTextSection,
8484
/// Read-write data not supported
85-
#[error("Found .bss section in ELF, read-write data not supported")]
86-
BssNotSupported,
87-
/// Read-write data not supported
8885
#[error("Found writable section ({0}) in ELF, read-write data not supported")]
8986
WritableSectionNotSupported(String),
9087
/// Relocation failed, no loadable section contains virtual address
@@ -692,8 +689,6 @@ impl<V: Verifier, C: ContextObject> Executable<V, C> {
692689
&& (name.starts_with(".data") && !name.starts_with(".data.rel")))
693690
{
694691
return Err(ElfError::WritableSectionNotSupported(name.to_owned()));
695-
} else if name == ".bss" {
696-
return Err(ElfError::BssNotSupported);
697692
}
698693
}
699694
}

0 commit comments

Comments
 (0)