mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
PPC: Fix externally provided relocation offsets in DynASM.
This commit is contained in:
parent
bec4d20fb6
commit
9df9c7ef73
@ -342,7 +342,7 @@ int dasm_encode(Dst_DECL, void *buffer)
|
|||||||
case DASM_STOP: case DASM_SECTION: goto stop;
|
case DASM_STOP: case DASM_SECTION: goto stop;
|
||||||
case DASM_ESC: *cp++ = *p++; break;
|
case DASM_ESC: *cp++ = *p++; break;
|
||||||
case DASM_REL_EXT:
|
case DASM_REL_EXT:
|
||||||
n = DASM_EXTERN(Dst, (unsigned char *)cp, (ins & 2047), 1);
|
n = DASM_EXTERN(Dst, (unsigned char *)cp, (ins & 2047), 1) - 4;
|
||||||
goto patchrel;
|
goto patchrel;
|
||||||
case DASM_ALIGN:
|
case DASM_ALIGN:
|
||||||
ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0x60000000;
|
ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0x60000000;
|
||||||
|
Loading…
Reference in New Issue
Block a user