Skip to content

Fix __eh_frame for AArch64 on macOS#1634

Draft
philipc wants to merge 1 commit intorust-lang:mainfrom
philipc:macho-arm64
Draft

Fix __eh_frame for AArch64 on macOS#1634
philipc wants to merge 1 commit intorust-lang:mainfrom
philipc:macho-arm64

Conversation

@philipc
Copy link
Copy Markdown
Contributor

@philipc philipc commented Mar 12, 2026

The relocations must use symbols (not sections), and the relative relocation needs ARM64_RELOC_SUBTRACTOR.

The section must be in __TEXT rather than __DWARF, which is handled by using StandardSection::EhFrame. This also changes the section type for ELF x86-64.

Depends on gimli-rs/object#856

The relocations must use symbols (not sections), and the relative relocation
needs ARM64_RELOC_SUBTRACTOR.

The section must be in __TEXT rather than __DWARF, which is handled by
using StandardSection::EhFrame. This also changes the section type
for ELF x86-64.
@madsmtm madsmtm added the O-macos Operating system: MacOS label Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-macos Operating system: MacOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants