| @@ -1323,13 +1323,14 @@ enum gotplt_entry { · 1322 unmodified lines |
| 1323 | | 1323 | |
| 1324 | /* what kind of relocation is it */ | 1324 | /* what kind of relocation is it */ |
| 1325 | struct reloc_info { | 1325 | struct reloc_info { |
| | 1326 | int known; /* true for known relocation */ |
| 1326 | int code_reloc; /* if false, that's a data reloc */ | 1327 | int code_reloc; /* if false, that's a data reloc */ |
| 1327 | int gotplt_entry; /* wether and when to create a GOT/PLT entry */ | 1328 | int gotplt_entry; /* wether and when to create a GOT/PLT entry */ |
| 1328 | int pltoff_addend; /* wether to store the PLT offset in addend */ | 1329 | int pltoff_addend; /* wether to store the PLT offset in addend */ |
| 1329 | }; | 1330 | }; |
| 1330 | | 1331 | |
| 1331 | #define INIT_RELOC_INFO(rtype, code_reloc, gotplt_entry, pltoff_addend) \ | 1332 | #define INIT_RELOC_INFO(rtype, code_reloc, gotplt_entry, pltoff_addend) \ |
| 1332 | [rtype] = {code_reloc, gotplt_entry, pltoff_addend}, | 1333 | [rtype] = {1, code_reloc, gotplt_entry, pltoff_addend}, |
| 1333 | ST_DATA struct reloc_info relocs_info[R_NUM]; | 1334 | ST_DATA struct reloc_info relocs_info[R_NUM]; |
| 1334 | | 1335 | |
| 1335 | ST_DATA Section *text_section, *data_section, *bss_section; /* predefined sections */ | 1336 | ST_DATA Section *text_section, *data_section, *bss_section; /* predefined sections */ |