mirror of
https://github.com/frida/tinycc
synced 2024-11-25 00:59:37 +03:00
added GOT support
This commit is contained in:
parent
7b54a53e08
commit
be44fce9cd
@ -114,6 +114,11 @@ void greloc_patch(unsigned char *ptr,
|
|||||||
case R_386_PC32:
|
case R_386_PC32:
|
||||||
*(int *)ptr += val - addr;
|
*(int *)ptr += val - addr;
|
||||||
break;
|
break;
|
||||||
|
case R_386_GOTPC:
|
||||||
|
*(int *)ptr += val - addr; /* XXX: use GOT address directly
|
||||||
|
instead of relying on
|
||||||
|
_GLOBAL_OFFSET_TABLE symbol ? */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user