[stack-canaries] fixed platform behavior

This commit is contained in:
A1029384756 committed 2026-06-12 23:27:32 -04:00
1 parent 2373fabe47
commit 8ccee66157
2 files changed
+31 -12

No files matched your search

+3 -1
View File
@@ -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) {