From 75d90347363a4ca0ddc6b73e64168578db410be2 Mon Sep 17 00:00:00 2001 From: Josh Channings Date: Wed, 29 Nov 2023 12:44:22 +0000 Subject: [PATCH] elf: sharc: Remove specific generic encoding error 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. --- src/write/elf/object.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/write/elf/object.rs b/src/write/elf/object.rs index ceefd91e..c0ad3252 100644 --- a/src/write/elf/object.rs +++ b/src/write/elf/object.rs @@ -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)));