Skip to content

Commit

Permalink
Remove unreachable BssNotSupported error (#462)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Patel <[email protected]>
  • Loading branch information
ripatel-fd and riptl authored May 10, 2023
1 parent 7a87580 commit 527add7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ pub enum ElfError {
#[error("Multiple or no text sections, consider removing llc option: -function-sections")]
NotOneTextSection,
/// Read-write data not supported
#[error("Found .bss section in ELF, read-write data not supported")]
BssNotSupported,
/// Read-write data not supported
#[error("Found writable section ({0}) in ELF, read-write data not supported")]
WritableSectionNotSupported(String),
/// Relocation failed, no loadable section contains virtual address
Expand Down Expand Up @@ -692,8 +689,6 @@ impl<V: Verifier, C: ContextObject> Executable<V, C> {
&& (name.starts_with(".data") && !name.starts_with(".data.rel")))
{
return Err(ElfError::WritableSectionNotSupported(name.to_owned()));
} else if name == ".bss" {
return Err(ElfError::BssNotSupported);
}
}
}
Expand Down

0 comments on commit 527add7

Please sign in to comment.