Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some infrastructure to generate EH_Frame in singlepass compiler #2811

Merged
merged 18 commits into from
Mar 23, 2022

Conversation

ptitSeb
Copy link
Contributor

@ptitSeb ptitSeb commented Mar 2, 2022

Description

Add generation of EH_Frame in singlepass compiler, to allow correct backtrace in case of trap.

@ptitSeb ptitSeb requested a review from Amanieu March 2, 2022 11:23
lib/compiler-singlepass/src/dwarf.rs Outdated Show resolved Hide resolved
lib/compiler-singlepass/src/machine_x64.rs Outdated Show resolved Hide resolved
lib/compiler-singlepass/Cargo.toml Show resolved Hide resolved
lib/compiler-singlepass/src/codegen.rs Outdated Show resolved Hide resolved
None
} else {
match target.triple().default_calling_convention() {
Ok(CallingConvention::SystemV) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about CallingConvention::AppleAarch64? Maybe just check for OS == Windows instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't work for now on AppleAarch64. The unwind fails, a pointer fail the authentication check (with autlib opcode).

lib/compiler-singlepass/src/machine.rs Outdated Show resolved Hide resolved
@ptitSeb ptitSeb marked this pull request as ready for review March 18, 2022 09:57
@Amanieu
Copy link
Contributor

Amanieu commented Mar 23, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 23, 2022

@bors bors bot merged commit a8a3412 into master Mar 23, 2022
@bors bors bot deleted the feat/singlepass_ehframe branch March 23, 2022 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants