We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ba288e commit dab20ccCopy full SHA for dab20cc
src/vdso.rs
@@ -255,6 +255,7 @@ where
255
Ok(())
256
}
257
258
+#[cfg(not(target_arch = "x86_64"))]
259
pub fn get_trampoline_addr(auxv: &[AuxEntry]) -> Option<usize> {
260
let vdso_base = auxv
261
.iter()
@@ -270,7 +271,6 @@ pub fn get_trampoline_addr(auxv: &[AuxEntry]) -> Option<usize> {
270
271
272
let mut sigreturn_offset: Option<usize> = None;
273
- #[cfg(not(target_arch = "x86_64"))]
274
unsafe {
275
unsafe extern "C" {
276
static vdso_start: u8;
@@ -293,3 +293,8 @@ pub fn get_trampoline_addr(auxv: &[AuxEntry]) -> Option<usize> {
293
);
294
Some(addr)
295
296
+
297
+#[cfg(target_arch = "x86_64")]
298
+pub fn get_trampoline_addr(_auxv: &[AuxEntry]) -> Option<usize> {
299
+ None
300
+}
0 commit comments