aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-11-12 23:14:21 +0100
committerThomas Preud'homme <robotux@celest.fr>2012-11-12 23:14:21 +0100
commit1af3bca4eae32e172a422fd3046246c5662078c3 (patch)
tree20fbd1296067891aa96248c736b373c6c2b31a82 /tcc.h
parent3c986eeae344666940ba9b342849fc819b0c2dd8 (diff)
downloadtinycc-1af3bca4eae32e172a422fd3046246c5662078c3.tar.gz
tinycc-1af3bca4eae32e172a422fd3046246c5662078c3.tar.bz2
Revert "Generate PLT thumb stub only when necessary"
Revert commit 891dfcdf3fc441a1863c43d179dc6e0e4d65836f since it assumes *all* architectures supported by tcc have GOT offsets aligned on 2. A rework of this commit is being done since without it all PLT entries grow by 4 bytes.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/tcc.h b/tcc.h
index fd4e8da..4e88782 100644
--- a/tcc.h
+++ b/tcc.h
@@ -33,7 +33,6 @@
#include <stdlib.h>
#include <stdio.h>
-#include <limits.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
@@ -525,15 +524,11 @@ struct TCCState {
Section **priv_sections;
int nb_priv_sections; /* number of private sections */
- /* got & plt handling */
+ /* got handling */
Section *got;
Section *plt;
- struct {
- unsigned long plt_thumb_stub:1;
- /* mult by 2 (or left shift by 1) before use */
- unsigned long got_offset:(sizeof(long)*CHAR_BIT-1);
- } *sym_infos;
- int nb_sym_infos;
+ unsigned long *got_offsets;
+ int nb_got_offsets;
/* give the correspondance from symtab indexes to dynsym indexes */
int *symtab_to_dynsym;