access-softek / llvm-project

Other
0 stars 0 forks source link

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

Closed kovdan01 closed 8 months ago

kovdan01 commented 10 months ago

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:

asl commented 10 months ago

Tagging @ahmedbougacha

kovdan01 commented 8 months ago

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.