added GOT support

tcc-xref
bellard 2002-07-18 00:51:27 +00:00
parent 7b54a53e08
commit be44fce9cd
1 changed files with 5 additions and 0 deletions

View File

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