Skip to content

Fix __eh_frame for AArch64 on macOS#1634

Merged
bjorn3 merged 3 commits intorust-lang:mainfrom
philipc:macho-arm64
Apr 23, 2026
Merged

Fix __eh_frame for AArch64 on macOS#1634
bjorn3 merged 3 commits 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

@madsmtm madsmtm added the O-macos Operating system: MacOS label Apr 19, 2026
@philipc philipc marked this pull request as ready for review April 21, 2026 09:17
Comment thread Cargo.lock
Comment thread src/debuginfo/emit.rs
@bjorn3
Copy link
Copy Markdown
Member

bjorn3 commented Apr 22, 2026

CI failure is because of rust-lang/cargo#16925

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.
@bjorn3 bjorn3 merged commit 203a324 into rust-lang:main Apr 23, 2026
24 of 25 checks passed
@philipc philipc deleted the macho-arm64 branch April 24, 2026 02:13
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.

3 participants