aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2014-04-06 00:30:22 +0200
committerMichael Matz <matz@suse.de>2014-04-06 00:30:22 +0200
commit9750d0b725d65296364c08451a985c717bf1890d (patch)
tree6ececf2241e2ef1236b2d364af23ee9ca1064c7d /tccrun.c
parentc4427747e6e5890b65c70e8fad5b30309b2b0279 (diff)
downloadtinycc-9750d0b725d65296364c08451a985c717bf1890d.tar.gz
tinycc-9750d0b725d65296364c08451a985c717bf1890d.tar.bz2
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.
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tccrun.c b/tccrun.c
index bd8c33f..2876ab7 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -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];