From a52a39179a47ee125e88ae0938f06d08cf5723ce Mon Sep 17 00:00:00 2001 From: grischka Date: Sun, 20 Nov 2016 14:52:56 +0100 Subject: tccelf: introduce add32/64le() --- i386-asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i386-asm.c') diff --git a/i386-asm.c b/i386-asm.c index b875aad..a7563ab 100644 --- a/i386-asm.c +++ b/i386-asm.c @@ -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 -- cgit v1.3.1