diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2016-12-05 20:58:00 +0000 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2016-12-05 20:58:00 +0000 |
| commit | e22249b81c367afc43bbc8029e700964c21900ce (patch) | |
| tree | 0c8ba96d8e55d78ab29f0f58b3dbcb3ba0b57c6b /tcc.h | |
| parent | 557c5c1f11d592b68573bea4acebddc183292cfc (diff) | |
| download | tinycc-e22249b81c367afc43bbc8029e700964c21900ce.tar.gz tinycc-e22249b81c367afc43bbc8029e700964c21900ce.tar.bz2 | |
Error on unrecognized relocations
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1323,13 +1323,14 @@ enum gotplt_entry { /* what kind of relocation is it */ 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] = {code_reloc, gotplt_entry, pltoff_addend}, + [rtype] = {1, code_reloc, gotplt_entry, pltoff_addend}, ST_DATA struct reloc_info relocs_info[R_NUM]; ST_DATA Section *text_section, *data_section, *bss_section; /* predefined sections */ |
