Stop emitting CET prologues for naked functions
We can apply nocf_check as a hack for now.
This commit is contained in:
parent
8824d13161
commit
92174f988b
6 changed files with 33 additions and 1 deletions
|
@ -84,6 +84,7 @@ enum LLVMRustAttribute {
|
|||
StackProtect = 32,
|
||||
NoUndef = 33,
|
||||
SanitizeMemTag = 34,
|
||||
NoCfCheck = 35,
|
||||
};
|
||||
|
||||
typedef struct OpaqueRustString *RustStringRef;
|
||||
|
|
|
@ -176,6 +176,8 @@ static Attribute::AttrKind fromRust(LLVMRustAttribute Kind) {
|
|||
return Attribute::NoAlias;
|
||||
case NoCapture:
|
||||
return Attribute::NoCapture;
|
||||
case NoCfCheck:
|
||||
return Attribute::NoCfCheck;
|
||||
case NoInline:
|
||||
return Attribute::NoInline;
|
||||
case NonNull:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue