• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine 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

Revision5fd63999813544012111697f77f3b4c87b91a1a8 (tree)
Zeit2002-12-21 06:13:19
AutorDJ Delorie <dj@redh...>
CommiterDJ Delorie

Log Message

* reloc.c: Add BFD_RELOC_XSTORMY16_12.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_12.
(xstormy16_reloc_map): Add R_XSTORMY16_12.

Ändern Zusammenfassung

Diff

--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,11 @@
1+2002-12-20 DJ Delorie <dj@redhat.com>
2+
3+ * reloc.c: Add BFD_RELOC_XSTORMY16_12.
4+ * libbfd.h: Regenerate.
5+ * bfd-in2.h: Regenerate.
6+ * elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_12.
7+ (xstormy16_reloc_map): Add R_XSTORMY16_12.
8+
19 2002-12-19 Kazu Hirata <kazu@cs.umass.edu>
210
311 * doc/bfdint.texi: Fix typos.
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -3237,6 +3237,7 @@ to follow the 16K memory bank of 68HC12 (seen as mapped in the window). */
32373237
32383238 /* Sony Xstormy16 Relocations. */
32393239 BFD_RELOC_XSTORMY16_REL_12,
3240+ BFD_RELOC_XSTORMY16_12,
32403241 BFD_RELOC_XSTORMY16_24,
32413242 BFD_RELOC_XSTORMY16_FPTR16,
32423243
--- a/bfd/elf32-xstormy16.c
+++ b/bfd/elf32-xstormy16.c
@@ -238,6 +238,21 @@ static reloc_howto_type xstormy16_elf_howto_table [] =
238238 0, /* src_mask */
239239 0xffff, /* dst_mask */
240240 FALSE), /* pcrel_offset */
241+
242+ /* A 12 bit absolute relocation. */
243+ HOWTO (R_XSTORMY16_12, /* type */
244+ 0, /* rightshift */
245+ 1, /* size (0 = byte, 1 = short, 2 = long) */
246+ 12, /* bitsize */
247+ FALSE, /* pc_relative */
248+ 0, /* bitpos */
249+ complain_overflow_signed, /* complain_on_overflow */
250+ bfd_elf_generic_reloc, /* special_function */
251+ "R_XSTORMY16_12", /* name */
252+ FALSE, /* partial_inplace */
253+ 0x0000, /* src_mask */
254+ 0x0fff, /* dst_mask */
255+ FALSE), /* pcrel_offset */
241256 };
242257
243258 static reloc_howto_type xstormy16_elf_howto_table2 [] =
@@ -297,6 +312,7 @@ static const reloc_map xstormy16_reloc_map [] =
297312 { BFD_RELOC_XSTORMY16_FPTR16, R_XSTORMY16_FPTR16, xstormy16_elf_howto_table },
298313 { BFD_RELOC_LO16, R_XSTORMY16_LO16, xstormy16_elf_howto_table },
299314 { BFD_RELOC_HI16, R_XSTORMY16_HI16, xstormy16_elf_howto_table },
315+ { BFD_RELOC_XSTORMY16_12, R_XSTORMY16_12, xstormy16_elf_howto_table },
300316 { BFD_RELOC_VTABLE_INHERIT, R_XSTORMY16_GNU_VTINHERIT, xstormy16_elf_howto_table2 },
301317 { BFD_RELOC_VTABLE_ENTRY, R_XSTORMY16_GNU_VTENTRY, xstormy16_elf_howto_table2 },
302318 };
@@ -332,7 +348,7 @@ xstormy16_info_to_howto_rela (abfd, cache_ptr, dst)
332348 {
333349 unsigned int r_type = ELF32_R_TYPE (dst->r_info);
334350
335- if (r_type <= (unsigned int) R_XSTORMY16_HI16)
351+ if (r_type <= (unsigned int) R_XSTORMY16_12)
336352 cache_ptr->howto = &xstormy16_elf_howto_table [r_type];
337353 else if (r_type - R_XSTORMY16_GNU_VTINHERIT
338354 <= (unsigned int) R_XSTORMY16_GNU_VTENTRY)
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -1367,6 +1367,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
13671367 "BFD_RELOC_H8_DIR24R8",
13681368 "BFD_RELOC_H8_DIR32A16",
13691369 "BFD_RELOC_XSTORMY16_REL_12",
1370+ "BFD_RELOC_XSTORMY16_12",
13701371 "BFD_RELOC_XSTORMY16_24",
13711372 "BFD_RELOC_XSTORMY16_FPTR16",
13721373 "BFD_RELOC_VAX_GLOB_DAT",
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -3597,6 +3597,8 @@ ENUMDOC
35973597 ENUM
35983598 BFD_RELOC_XSTORMY16_REL_12
35993599 ENUMX
3600+ BFD_RELOC_XSTORMY16_12
3601+ENUMX
36003602 BFD_RELOC_XSTORMY16_24
36013603 ENUMX
36023604 BFD_RELOC_XSTORMY16_FPTR16