Skip to content

Commit 29ac0f4

Browse files
stikonasekaitz-zarraga
authored andcommitted
Add a workaround for mes not zero-initializing the whole label.
1 parent 4cf19b8 commit 29ac0f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

riscv64-gen.c

+1
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ static int load_symofs(int r, SValue *sv, int forstore)
299299
int fc = sv->c.i, v = sv->r & VT_VALMASK;
300300
if (sv->r & VT_SYM) {
301301
Sym label = {0};
302+
label.c = 0; // mescc fails to properly initialize the line above
302303
assert(v == VT_CONST);
303304
if (sv->sym->type.t & VT_STATIC) { // XXX do this per linker relax
304305
greloca(cur_text_section, sv->sym, ind,

0 commit comments

Comments
 (0)