tccelf: introduce add32/64le()

This commit is contained in:
grischka
2016-11-20 14:52:56 +01:00
parent 4a3741bf02
commit a52a39179a
3 changed files with 28 additions and 24 deletions

View File

@ -891,7 +891,7 @@ ST_FUNC void asm_opcode(TCCState *s1, int opcode)
/* after immediate operands, adjust pc-relative address */
if (pc)
*(int*)(text_section->data + pc - 4) -= ind - pc;
add32le(text_section->data + pc - 4, pc - ind);
}
/* return the constraint priority (we allocate first the lowest