aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1997-09-03 18:22:00 +0000
committerNick Clifton <nickc@redhat.com>1997-09-03 18:22:00 +0000
commit93f18857390bc30266ffb808fbc9ae41b1b08d52 (patch)
tree7c8f4604561079d7d327e3585715ff410e0ff7ab /bfd
parent2d2784843093ff4188a7f61ad27c7f9d44ec2dd7 (diff)
downloadgdb-93f18857390bc30266ffb808fbc9ae41b1b08d52.zip
gdb-93f18857390bc30266ffb808fbc9ae41b1b08d52.tar.gz
gdb-93f18857390bc30266ffb808fbc9ae41b1b08d52.tar.bz2
Removed BFD_RELOC_V850_PCREL.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/bfd-in2.h3
-rw-r--r--bfd/elf32-v850.c46
-rw-r--r--bfd/libbfd.h1
4 files changed, 5 insertions, 50 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6ca14c6..e3e7381 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 3 11:23:23 1997 Nick Clifton <nickc@cygnus.com>
+
+ * libbfd.h, bfd-in2.h, elf32-v850.c: Removed
+ BFD_RELOC_V850_16_PCREL.
+
Tue Sep 2 20:44:10 1997 Fred Fish <fnf@cygnus.com>
* cofflink.c (coff_link_check_ar_symbols): Handle C_SYSTEM syms
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index aba89ed..8e7a018 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1942,9 +1942,6 @@ add3, load, and store instructions. */
/* This is a 9-bit reloc */
BFD_RELOC_V850_9_PCREL,
-/* This is a 16-bit reloc */
- BFD_RELOC_V850_16_PCREL,
-
/* This is a 22-bit reloc */
BFD_RELOC_V850_22_PCREL,
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c
index b329f52..7496e84 100644
--- a/bfd/elf32-v850.c
+++ b/bfd/elf32-v850.c
@@ -83,21 +83,6 @@ static reloc_howto_type v850_elf_howto_table[] =
0x00ffffff, /* dst_mask */
true), /* pcrel_offset */
- /* A PC relative 16 bit load/store. */
- HOWTO (R_V850_16_PCREL, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- true, /* pc_relative */
- 17, /* bitpos */
- complain_overflow_bitfield, /* complain_on_overflow */
- v850_elf_reloc, /* special_function */
- "R_V850_16_PCREL", /* name */
- false, /* partial_inplace */
- 0xfffe0000, /* src_mask */
- 0xfffe0000, /* dst_mask */
- true), /* pcrel_offset */
-
/* A PC relative 22 bit branch. */
HOWTO (R_V850_22_PCREL, /* type */
2, /* rightshift */
@@ -385,7 +370,6 @@ static const struct v850_elf_reloc_map v850_elf_reloc_map[] =
{
{ BFD_RELOC_NONE, R_V850_NONE },
{ BFD_RELOC_V850_9_PCREL, R_V850_9_PCREL },
- { BFD_RELOC_V850_16_PCREL, R_V850_16_PCREL },
{ BFD_RELOC_V850_22_PCREL, R_V850_22_PCREL },
{ BFD_RELOC_HI16_S, R_V850_HI16_S },
{ BFD_RELOC_HI16, R_V850_HI16 },
@@ -502,7 +486,6 @@ v850_elf_check_relocs (abfd, info, sec, relocs)
default:
case R_V850_NONE:
case R_V850_9_PCREL:
- case R_V850_16_PCREL:
case R_V850_22_PCREL:
case R_V850_HI16_S:
case R_V850_HI16:
@@ -694,19 +677,6 @@ v850_elf_reloc (abfd, reloc, symbol, data, isection, obfd, err)
bfd_put_32 (abfd, insn, (bfd_byte *)data + reloc->address);
return bfd_reloc_ok;
- case R_V850_16_PCREL:
- if (relocation > 0x7fff || relocation < -0x10000)
- return bfd_reloc_overflow;
-
- if ((relocation % 2) != 0)
- return bfd_reloc_dangerous;
-
- insn = bfd_get_32 (abfd, (bfd_byte *) data + reloc->address);
- insn &= 0x1ffff;
- insn |= ((relocation & 0xfffe) << 16);
- bfd_put_32 (abfd, insn, (bfd_byte *) data + reloc->address);
- return bfd_reloc_ok;
-
case R_V850_9_PCREL:
if (relocation > 0xff || relocation < -0x100)
return bfd_reloc_overflow;
@@ -896,22 +866,6 @@ v850_elf_final_link_relocate (howto, input_bfd, output_bfd,
bfd_put_16 (input_bfd, insn, hit_data);
return bfd_reloc_ok;
- case R_V850_16_PCREL:
- value -= (input_section->output_section->vma + input_section->output_offset);
- value -= offset;
-
- if ((long)value > 0x7fff || (long)value < -0x10000)
- return bfd_reloc_overflow;
-
- if ((value % 2) != 0)
- return bfd_reloc_dangerous;
-
- insn = bfd_get_32 (input_bfd, hit_data);
- insn &= 0x1ffff;
- insn |= ((value & 0xfffe) << 16);
- bfd_put_32 (input_bfd, insn, hit_data);
- return bfd_reloc_ok;
-
case R_V850_22_PCREL:
value -= (input_section->output_section->vma
+ input_section->output_offset);
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index a5b4f80..c069192 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -770,7 +770,6 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_M32R_SDA16",
/* start-sanitize-v850 */
"BFD_RELOC_V850_9_PCREL",
- "BFD_RELOC_V850_16_PCREL",
"BFD_RELOC_V850_22_PCREL",
"BFD_RELOC_V850_SDA_16_16_OFFSET",
"BFD_RELOC_V850_SDA_15_16_OFFSET",