Skip to content

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

3 participants