From e9a14c133f5fcb1f9b68e166e397782bb3de51d8 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 8 Nov 2022 11:00:51 -0500 Subject: in theory this should be working but it's not --- src/elf.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/elf.rs') diff --git a/src/elf.rs b/src/elf.rs index e9b3c98..0df0896 100644 --- a/src/elf.rs +++ b/src/elf.rs @@ -421,14 +421,14 @@ impl RelType { } } - pub fn to_x86_u8(self) -> Option { + pub fn to_x86_u8(self) -> u8 { use RelType::*; - Some(match self { + match self { Direct32 => 1, Pc32 => 2, Other(x) => x, - }) - } + } + } } pub struct Relocation { -- cgit v1.2.3