diff options
author | pommicket <pommicket@gmail.com> | 2022-11-08 11:00:51 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-11-08 11:00:51 -0500 |
commit | e9a14c133f5fcb1f9b68e166e397782bb3de51d8 (patch) | |
tree | 517d40e96ff8b8487f339c8dcfe100d9bf801fd5 /src/elf.rs | |
parent | e02ed40851251064e907b91eec7cea6b89d3c186 (diff) |
in theory this should be working but it's not
Diffstat (limited to 'src/elf.rs')
-rw-r--r-- | src/elf.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -421,14 +421,14 @@ impl RelType { } } - pub fn to_x86_u8(self) -> Option<u8> { + pub fn to_x86_u8(self) -> u8 { use RelType::*; - Some(match self { + match self { Direct32 => 1, Pc32 => 2, Other(x) => x, - }) - } + } + } } pub struct Relocation { |