added GOT support

This commit is contained in:
bellard 2002-07-18 00:51:27 +00:00
parent 7b54a53e08
commit be44fce9cd

View File

@ -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;
} }
} }