• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修订版c74be520ba8ed2d013d43916b923b837294343cc (tree)
时间2015-09-02 21:13:08
作者H.J. Lu <hjl.tools@gmai...>
CommiterH.J. Lu

Log Message

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.

更改概述

差异

--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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+
19 2015-09-01 H.J. Lu <hongjiu.lu@intel.com>
210
311 PR ld/18900
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -148,8 +148,8 @@ static reloc_howto_type elf_howto_table[]=
148148 TRUE, 0xffffffff, 0xffffffff, FALSE),
149149
150150 /* 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)
153153
154154 /* GNU extension to record C++ vtable hierarchy. */
155155 HOWTO (R_386_GNU_VTINHERIT, /* type */
@@ -371,9 +371,9 @@ elf_i386_rtype_to_howto (bfd *abfd, unsigned r_type)
371371 && ((indx = r_type - R_386_ext_offset) - R_386_standard
372372 >= R_386_ext - R_386_standard)
373373 && ((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))
377377 {
378378 (*_bfd_error_handler) (_("%B: invalid relocation type %d"),
379379 abfd, (int) r_type);
@@ -3422,7 +3422,7 @@ elf_i386_relocate_section (bfd *output_bfd,
34223422 && ((indx = r_type - R_386_ext_offset) - R_386_standard
34233423 >= R_386_ext - R_386_standard)
34243424 && ((indx = r_type - R_386_tls_offset) - R_386_ext
3425- >= R_386_irelative - R_386_ext))
3425+ >= R_386_ext2 - R_386_ext))
34263426 {
34273427 (*_bfd_error_handler)
34283428 (_("%B: unrecognized relocation (0x%x) in section `%A'"),