added GOT support
This commit is contained in:
parent
7b54a53e08
commit
be44fce9cd
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue