GNU Binutils with patches for OS216
修订版 | c74be520ba8ed2d013d43916b923b837294343cc (tree) |
---|---|
时间 | 2015-09-02 21:13:08 |
作者 | H.J. Lu <hjl.tools@gmai...> |
Commiter | H.J. Lu |
Rename R_386_irelative to R_386_ext2
* elf32-i386.c (R_386_irelative): Renamed to ...
(R_386_ext2): This.
(R_386_vt_offset): Updated.
(elf_i386_rtype_to_howto): Likewise.
(elf_i386_relocate_section): Likewise.
@@ -1,3 +1,11 @@ | ||
1 | +2015-09-02 H.J. Lu <hongjiu.lu@intel.com> | |
2 | + | |
3 | + * elf32-i386.c (R_386_irelative): Renamed to ... | |
4 | + (R_386_ext2): This. | |
5 | + (R_386_vt_offset): Updated. | |
6 | + (elf_i386_rtype_to_howto): Likewise. | |
7 | + (elf_i386_relocate_section): Likewise. | |
8 | + | |
1 | 9 | 2015-09-01 H.J. Lu <hongjiu.lu@intel.com> |
2 | 10 | |
3 | 11 | PR ld/18900 |
@@ -148,8 +148,8 @@ static reloc_howto_type elf_howto_table[]= | ||
148 | 148 | TRUE, 0xffffffff, 0xffffffff, FALSE), |
149 | 149 | |
150 | 150 | /* Another gap. */ |
151 | -#define R_386_irelative (R_386_IRELATIVE + 1 - R_386_tls_offset) | |
152 | -#define R_386_vt_offset (R_386_GNU_VTINHERIT - R_386_irelative) | |
151 | +#define R_386_ext2 (R_386_IRELATIVE + 1 - R_386_tls_offset) | |
152 | +#define R_386_vt_offset (R_386_GNU_VTINHERIT - R_386_ext2) | |
153 | 153 | |
154 | 154 | /* GNU extension to record C++ vtable hierarchy. */ |
155 | 155 | HOWTO (R_386_GNU_VTINHERIT, /* type */ |
@@ -371,9 +371,9 @@ elf_i386_rtype_to_howto (bfd *abfd, unsigned r_type) | ||
371 | 371 | && ((indx = r_type - R_386_ext_offset) - R_386_standard |
372 | 372 | >= R_386_ext - R_386_standard) |
373 | 373 | && ((indx = r_type - R_386_tls_offset) - R_386_ext |
374 | - >= R_386_irelative - R_386_ext) | |
375 | - && ((indx = r_type - R_386_vt_offset) - R_386_irelative | |
376 | - >= R_386_vt - R_386_irelative)) | |
374 | + >= R_386_ext2 - R_386_ext) | |
375 | + && ((indx = r_type - R_386_vt_offset) - R_386_ext2 | |
376 | + >= R_386_vt - R_386_ext2)) | |
377 | 377 | { |
378 | 378 | (*_bfd_error_handler) (_("%B: invalid relocation type %d"), |
379 | 379 | abfd, (int) r_type); |
@@ -3422,7 +3422,7 @@ elf_i386_relocate_section (bfd *output_bfd, | ||
3422 | 3422 | && ((indx = r_type - R_386_ext_offset) - R_386_standard |
3423 | 3423 | >= R_386_ext - R_386_standard) |
3424 | 3424 | && ((indx = r_type - R_386_tls_offset) - R_386_ext |
3425 | - >= R_386_irelative - R_386_ext)) | |
3425 | + >= R_386_ext2 - R_386_ext)) | |
3426 | 3426 | { |
3427 | 3427 | (*_bfd_error_handler) |
3428 | 3428 | (_("%B: unrecognized relocation (0x%x) in section `%A'"), |