Add separate rust_probestack definition for uefi (#335)
This is necessary because the Mach-O definition must have the triple underscore, but the UEFI one must not.
This commit is contained in:
parent
6de4f8f2e0
commit
d7191b14c1
|
@ -75,8 +75,22 @@ macro_rules! define_rust_probestack {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Same as above, but for Mach-O.
|
#[cfg(target_os = "uefi")]
|
||||||
#[cfg(any(target_vendor = "apple", target_os = "uefi"))]
|
macro_rules! define_rust_probestack {
|
||||||
|
($body: expr) => {
|
||||||
|
concat!(
|
||||||
|
"
|
||||||
|
.globl __rust_probestack
|
||||||
|
__rust_probestack:
|
||||||
|
",
|
||||||
|
$body
|
||||||
|
)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// Same as above, but for Mach-O. Note that the triple underscore
|
||||||
|
// is deliberate
|
||||||
|
#[cfg(target_vendor = "apple")]
|
||||||
macro_rules! define_rust_probestack {
|
macro_rules! define_rust_probestack {
|
||||||
($body: expr) => {
|
($body: expr) => {
|
||||||
concat!(
|
concat!(
|
||||||
|
|
Loading…
Reference in New Issue