diff --git a/src/ld_so/dso.rs b/src/ld_so/dso.rs index dd210ced26..98d4a0b658 100644 --- a/src/ld_so/dso.rs +++ b/src/ld_so/dso.rs @@ -1126,7 +1126,9 @@ impl DSO { RelocationKind::TLSDESC => { self.do_tlsdesc_reloc(reloc, ptr.cast::(), global_scope) } - _ => unimplemented!("relocation type {:?}", reloc.kind), + _ => { + return Err(format!("unsupported relocation type {:?}", reloc.kind)); + } } Ok(()) @@ -1200,11 +1202,11 @@ impl DSO { } _ => { - unimplemented!( - "relocation type {:?} with resolve {:?}", + return Err(format!( + "unsupported relocation type {:?} with resolve {:?}", reloc.kind, resolve - ) + )); } } }