Skip to content

Commit 786d305

Browse files
committed
Revert "regression testing stabilization"
This reverts commit ce2a61d.
1 parent ce2a61d commit 786d305

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tccgen.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8555,6 +8555,8 @@ static void decl_initializer_alloc(CType *type, AttributeDef *ad, int r,
85558555
/* XXX: DWIM logic: set section flags according to first usage */
85568556
if (!is_const) {
85578557
sec->sh_flags |= SHF_WRITE;
8558+
if (!has_init)
8559+
sec->sh_type = SHT_NOBITS;
85588560
}
85598561
}
85608562

0 commit comments

Comments
 (0)