mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 06:12:05 -04:00
[stack-canaries] fixed platform behavior
This commit is contained in:
1 parent
2373fabe47
commit
8ccee66157
2 files changed
+31
-12
No files matched your search
@@ -161,13 +161,15 @@ gb_internal lbProcedure *lb_create_procedure(lbModule *m, Entity *entity, bool i
|
||||
}
|
||||
|
||||
switch (build_context.stack_protector) {
|
||||
case StackProtector_Default:
|
||||
case StackProtector_Ssp:
|
||||
lb_add_attribute_to_proc(m, p->value, "ssp");
|
||||
break;
|
||||
case StackProtector_SspReq:
|
||||
lb_add_attribute_to_proc(m, p->value, "sspreq");
|
||||
break;
|
||||
case StackProtector_SspStrong:
|
||||
lb_add_attribute_to_proc(m, p->value, "sspstrong");
|
||||
break;
|
||||
}
|
||||
|
||||
if (build_context.disable_unwind) {
|
||||
|
||||
Reference in new issue
Block a user