aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2016-12-10 17:18:09 +0000
committerThomas Preud'homme <robotux@celest.fr>2016-12-10 18:13:23 +0000
commitd31226c8738d948e2bb4133b56597fff25169e43 (patch)
treeb3dce82abb39746d036b75f623a62d74c961b302 /tcc.h
parentee2108d07d1f16700e97b3f876a213ae6949bf0e (diff)
downloadtinycc-d31226c8738d948e2bb4133b56597fff25169e43.tar.gz
tinycc-d31226c8738d948e2bb4133b56597fff25169e43.tar.bz2
Remove now useless pltoff_addend reloc info
Last use for pltoff_addend field of relocs_info array was removed in commit 25927df3b75c5ce2b64ab8acdcc5974b4e1c89c1. It is now useless so this commit removes it and all initialization related to it.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/tcc.h b/tcc.h
index 34cde73..4f350ff 100644
--- a/tcc.h
+++ b/tcc.h
@@ -1326,11 +1326,10 @@ struct reloc_info {
int known; /* true for known relocation */
int code_reloc; /* if false, that's a data reloc */
int gotplt_entry; /* wether and when to create a GOT/PLT entry */
- int pltoff_addend; /* wether to store the PLT offset in addend */
};
-#define INIT_RELOC_INFO(rtype, code_reloc, gotplt_entry, pltoff_addend) \
- [rtype] = {1, code_reloc, gotplt_entry, pltoff_addend},
+#define INIT_RELOC_INFO(rtype, code_reloc, gotplt_entry) \
+ [rtype] = {1, code_reloc, gotplt_entry},
ST_DATA struct reloc_info relocs_info[R_NUM];
ST_DATA Section *text_section, *data_section, *bss_section; /* predefined sections */