Add ShadowCallStack Support
Adds support for the LLVM ShadowCallStack sanitizer.
This commit is contained in:
parent
a289cfcfb3
commit
adf61e3b2b
14 changed files with 57 additions and 4 deletions
|
@ -85,6 +85,7 @@ enum LLVMRustAttribute {
|
|||
NoUndef = 33,
|
||||
SanitizeMemTag = 34,
|
||||
NoCfCheck = 35,
|
||||
ShadowCallStack = 36,
|
||||
};
|
||||
|
||||
typedef struct OpaqueRustString *RustStringRef;
|
||||
|
|
|
@ -232,6 +232,8 @@ static Attribute::AttrKind fromRust(LLVMRustAttribute Kind) {
|
|||
return Attribute::NoUndef;
|
||||
case SanitizeMemTag:
|
||||
return Attribute::SanitizeMemTag;
|
||||
case ShadowCallStack:
|
||||
return Attribute::ShadowCallStack;
|
||||
}
|
||||
report_fatal_error("bad AttributeKind");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue