x86_64: Create proper PLT and GOT also for -run

This makes us use the normal PLT/GOT codepaths also for -run,
which formerly used an on-the-side blob for the jump tables.
For x86_64 only for now, arm coming up.
This commit is contained in:
Michael Matz
2014-04-06 00:30:22 +02:00
parent c4427747e6
commit 9750d0b725
3 changed files with 24 additions and 17 deletions

View File

@ -197,6 +197,7 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr)
if (s->reloc)
relocate_section(s1, s);
}
relocate_plt(s1);
for(i = 1; i < s1->nb_sections; i++) {
s = s1->sections[i];