From 1af3bca4eae32e172a422fd3046246c5662078c3 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 12 Nov 2012 23:14:21 +0100 Subject: 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. --- tcc.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index fd4e8da..4e88782 100644 --- a/tcc.h +++ b/tcc.h @@ -33,7 +33,6 @@ #include #include -#include #include #include #include @@ -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; -- cgit v1.3.1