Skip to content

[WIP][PAC] Emit IR debug info metadata nodes for implicitly signed pointers #64

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

Closed
wants to merge 1 commit into from

Conversation

kovdan01
Copy link
Contributor

Emit debug metadata nodes with DW_TAG_LLVM_ptrauth_type tag containing signing scheme info for the following types of implicitly (without __ptrauth specifier) signed pointers:

  • virtual table pointers;
  • free function pointers;
  • member function pointers.

…inters

Emit debug metadata nodes with `DW_TAG_LLVM_ptrauth_type` tag containing
signing scheme info for the following types of implicitly (without
`__ptrauth` specifier) signed pointers:

- virtual table pointers;
- free function pointers;
- member function pointers.
@kovdan01 kovdan01 force-pushed the dkovalev/pauth-dwarf branch from c9c3472 to 0e3c7fa Compare December 11, 2023 15:05
@asl
Copy link
Contributor

asl commented Dec 11, 2023

Tagging @ahmedbougacha

@kovdan01
Copy link
Contributor Author

In any case, we need to get info about ABI signing schema used by debuggee in order to pass desired flags to compiler in context of user expression evaluation. Given that, if we know the ABI, there is no reason in emitting ptrauth dwarf data for implicitly signed pointers - the compiler will sign them properly when we pass signing flags used by ABI to the compiler. So, in Dwarf we only need to have info about explicitly signed pointers. Closing this as not needed anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PAuth] Emit Dwarf info for implicitly signed pointers
2 participants