mirror of
https://github.com/frida/tinycc
synced 2024-11-24 16:49:44 +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:
|
||||
*(int *)ptr += val - addr;
|
||||
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