[stack-canaries] fixed platform behavior

This commit is contained in:
A1029384756
2026-06-12 23:27:32 -04:00
parent 2373fabe47
commit 8ccee66157
2 changed files with 31 additions and 12 deletions

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) {