* reloc.c (bfd_reloc_code_type): Add new value BFD_RELOC_12_PCREL.
[deliverable/binutils-gdb.git] / bfd / reloc.c
index 24a5236a0f8be2dd186380701a4302473fb2689b..ade22e247f67a01e7814da2a64e217c8f9ec49b8 100644 (file)
@@ -964,7 +964,7 @@ bfd_install_relocation (abfd, reloc_entry, data_start, data_start_offset,
   const reloc_howto_type *howto = reloc_entry->howto;
   asection *reloc_target_output_section;
   asymbol *symbol;
-  PTR data;
+  bfd_byte *data;
 
   symbol = *(reloc_entry->sym_ptr_ptr);
   if (bfd_is_abs_section (symbol->section))
@@ -1681,6 +1681,8 @@ ENUMX
   BFD_RELOC_24_PCREL
 ENUMX
   BFD_RELOC_16_PCREL
+ENUMX
+  BFD_RELOC_12_PCREL
 ENUMX
   BFD_RELOC_8_PCREL
 ENUMDOC
@@ -1711,11 +1713,12 @@ ENUMX
 ENUMX
   BFD_RELOC_23_PCREL_S2
 ENUMDOC
-  These PC-relative relocations are stored as word displacements -- i.e.,
-byte displacements shifted right two bits.  The 30-bit word displacement
-(<<32_PCREL_S2>> -- 32 bits, shifted 2) is used on the SPARC.  The signed
-16-bit displacement is used on the MIPS, and the 23-bit displacement is
-used on the Alpha.
+  These PC-relative relocations are stored as word displacements --
+i.e., byte displacements shifted right two bits.  The 30-bit word
+displacement (<<32_PCREL_S2>> -- 32 bits, shifted 2) is used on the
+SPARC.  (SPARC tools generally refer to this as <<WDISP30>>.)  The
+signed 16-bit displacement is used on the MIPS, and the 23-bit
+displacement is used on the Alpha.
 
 ENUM
   BFD_RELOC_HI22
This page took 0.024385 seconds and 4 git commands to generate.