Skip to content

Commit

Permalink
elf: sharc: Remove specific generic encoding error
Browse files Browse the repository at this point in the history
As discussed in PR #593

The `_` pattern will take these matches now, so the result is still an
Error, just with a (probably) more truthful message.
  • Loading branch information
joshchngs committed Nov 29, 2023
1 parent 45c7463 commit 75d9034
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/write/elf/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,6 @@ impl<'a> Object<'a> {
(RelocationKind::Absolute, RelocationEncoding::SharcTypeB, 7) => {
elf::R_SHARC_DATA7_VISA_V3
}
(_, RelocationEncoding::Generic, _) => {
return Err(Error(format!(
"SHARC+ ISA does not have a generic relocation encoding"
)));
}
(RelocationKind::Elf(x), _, _) => x,
_ => {
return Err(Error(format!("unimplemented relocation {:?}", reloc)));
Expand Down

0 comments on commit 75d9034

Please sign in to comment.