Skip to content

Commit ce2cca5

Browse files
bug: fix for arch not x86_64 or aarch64 (#61)
1 parent baac905 commit ce2cca5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/execution/relocations.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ use anyhow::{anyhow, Result};
2020

2121
use super::{functions::function_resolver, mmap::MappedSection};
2222

23-
#[cfg(target_arch = "wasm32")]
23+
#[cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))]
2424
pub(crate) struct JumpTableEntry;
2525

26-
#[cfg(target_arch = "wasm32")]
26+
#[cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))]
2727
impl JumpTableEntry {
2828
fn new(_addr: *const u8) -> Self {
29-
panic!("JumpTableEntry not supported on wasm32")
29+
panic!("JumpTableEntry not supported on this architecture")
3030
}
3131
fn jump_ptr(&self) -> *const u8 {
32-
panic!("JumpTableEntry not supported on wasm32")
32+
panic!("JumpTableEntry not supported on this architecture")
3333
}
3434
pub(crate) fn from_bytes(_bytes: &mut [u8]) -> &mut [Self] {
35-
panic!("JumpTableEntry not supported on wasm32")
35+
panic!("JumpTableEntry not supported on this architecture")
3636
}
3737
}
3838

0 commit comments

Comments
 (0)