Fix compile errors on FreeBSD x64/arm64 (#5606)
* Fix compile error on FreeBSD x64 * Fix compile on FreeBSD arm64 * Update Cargo.lock for ittapi * vet: certify diff for ittapi libraries Co-authored-by: Andrew Brown <andrew.brown@intel.com>
This commit is contained in:
committed by
GitHub
parent
5e8c6c9117
commit
86790d36df
8
Cargo.lock
generated
8
Cargo.lock
generated
@@ -1591,9 +1591,9 @@ checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ittapi"
|
name = "ittapi"
|
||||||
version = "0.3.1"
|
version = "0.3.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "663fe0550070071ff59e981864a9cd3ee1c869ed0a088140d9ac4dc05ea6b1a1"
|
checksum = "2e648c437172ce7d3ac35ca11a068755072054826fa455a916b43524fa4a62a7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"ittapi-sys",
|
"ittapi-sys",
|
||||||
@@ -1602,9 +1602,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ittapi-sys"
|
name = "ittapi-sys"
|
||||||
version = "0.3.1"
|
version = "0.3.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e21911b7183f38c71d75ab478a527f314e28db51027037ece2e5511ed9410703"
|
checksum = "a9b32a4d23f72548178dde54f3c12c6b6a08598e25575c0d0fa5bd861e0dc1a5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ features = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[target.'cfg(target_arch = "x86_64")'.dependencies]
|
[target.'cfg(target_arch = "x86_64")'.dependencies]
|
||||||
ittapi = { version = "0.3.0", optional = true }
|
ittapi = { version = "0.3.3", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
jitdump = ['wasmtime-jit-debug']
|
jitdump = ['wasmtime-jit-debug']
|
||||||
|
|||||||
@@ -224,6 +224,12 @@ unsafe fn get_pc_and_fp(cx: *mut libc::c_void, _signum: libc::c_int) -> (*const
|
|||||||
cx.uc_mcontext.__gregs[libc::REG_PC] as *const u8,
|
cx.uc_mcontext.__gregs[libc::REG_PC] as *const u8,
|
||||||
cx.uc_mcontext.__gregs[libc::REG_S0] as usize,
|
cx.uc_mcontext.__gregs[libc::REG_S0] as usize,
|
||||||
)
|
)
|
||||||
|
} else if #[cfg(all(target_os = "freebsd", target_arch = "aarch64"))] {
|
||||||
|
let cx = &*(cx as *const libc::mcontext_t);
|
||||||
|
(
|
||||||
|
cx.mc_gpregs.gp_elr as *const u8,
|
||||||
|
cx.mc_gpregs.gp_x[29] as usize,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
compile_error!("unsupported platform");
|
compile_error!("unsupported platform");
|
||||||
|
|||||||
@@ -290,6 +290,18 @@ criteria = "safe-to-deploy"
|
|||||||
version = "0.4.1"
|
version = "0.4.1"
|
||||||
notes = "Contains only unsafe code for interacting with the crate's intended purpose."
|
notes = "Contains only unsafe code for interacting with the crate's intended purpose."
|
||||||
|
|
||||||
|
[[audits.ittapi]]
|
||||||
|
who = "Andrew Brown <andrew.brown@intel.com>"
|
||||||
|
criteria = "safe-to-deploy"
|
||||||
|
delta = "0.3.1 -> 0.3.3"
|
||||||
|
notes = "I am the author of this crate."
|
||||||
|
|
||||||
|
[[audits.ittapi-sys]]
|
||||||
|
who = "Andrew Brown <andrew.brown@intel.com>"
|
||||||
|
criteria = "safe-to-deploy"
|
||||||
|
delta = "0.3.1 -> 0.3.3"
|
||||||
|
notes = "Unsafe code is due to auto-generated bindings to a widely-deployed C library."
|
||||||
|
|
||||||
[[audits.leb128]]
|
[[audits.leb128]]
|
||||||
who = "Nick Fitzgerald <fitzgen@gmail.com>"
|
who = "Nick Fitzgerald <fitzgen@gmail.com>"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|||||||
Reference in New Issue
Block a user