Merge commit '89f54caacf' into sync_cg_clif-2024-04-11
This commit is contained in:
commit
2ab4334a96
8 changed files with 44 additions and 14 deletions
|
|
@ -38,6 +38,14 @@ impl UnwindContext {
|
|||
}
|
||||
|
||||
pub(crate) fn add_function(&mut self, func_id: FuncId, context: &Context, isa: &dyn TargetIsa) {
|
||||
if let target_lexicon::OperatingSystem::MacOSX { .. } = isa.triple().operating_system {
|
||||
// The object crate doesn't currently support DW_GNU_EH_PE_absptr, which macOS
|
||||
// requires for unwinding tables. In addition on arm64 it currently doesn't
|
||||
// support 32bit relocations as we currently use for the unwinding table.
|
||||
// See gimli-rs/object#415 and rust-lang/rustc_codegen_cranelift#1371
|
||||
return;
|
||||
}
|
||||
|
||||
let unwind_info = if let Some(unwind_info) =
|
||||
context.compiled_code().unwrap().create_unwind_info(isa).unwrap()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue