mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
linker/macho: include Mach-O specific reloc scanning for libc symbols
This commit is contained in:
parent
c4c9869a15
commit
dfbd0f0c66
1 changed files with 13 additions and 0 deletions
|
@ -1359,6 +1359,19 @@ fn surgery_macho_help(
|
|||
RelocationKind::Got => {
|
||||
println!("\t\tTODO synthesise __got entry for {name}")
|
||||
}
|
||||
RelocationKind::MachO { value, relative: _ } => match value {
|
||||
macho::ARM64_RELOC_GOT_LOAD_PAGE21
|
||||
| macho::ARM64_RELOC_GOT_LOAD_PAGEOFF12 => {
|
||||
println!("\t\tTODO synthesise __got entry for {name}")
|
||||
}
|
||||
macho::ARM64_RELOC_BRANCH26 => {
|
||||
println!("\t\tTODO synthesise __stub entry for {name}")
|
||||
}
|
||||
_ => internal_error!(
|
||||
"Invalid relocation for libc symbol, {:+x?}: {name}",
|
||||
rel
|
||||
),
|
||||
},
|
||||
_ => internal_error!(
|
||||
"Invalid relocation for libc symbol, {:+x?}: {name}",
|
||||
rel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue