arm: Use proper PLT/GOT for -run.

Same as with x86_64, disable the runtime_plt_and_got hack
for -run on arm as well.  For that we need to handle several
relocations as (potentially) generating PLT slots as well.
Tested with mpfr-3.1.2 and gawk (both using --disable-shared),
there are two resp. five pre-existing problems, so no regressions.

This also works toward enabling real shared libs for arm,
but it's not there yet.
This commit is contained in:
Michael Matz
2014-04-06 01:02:42 +02:00
parent 9750d0b725
commit 01c0419234
2 changed files with 54 additions and 10 deletions

2
tcc.h
View File

@ -712,7 +712,7 @@ struct TCCState {
void *write_mem;
unsigned long mem_size;
# endif
# if !defined TCC_TARGET_PE && (defined TCC_TARGET_ARM)
# if !defined TCC_TARGET_PE && (0)
/* write PLT and GOT here */
char *runtime_plt_and_got;
unsigned runtime_plt_and_got_offset;