summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2011-01-05 22:04:07 +0000
committerDJ Delorie <dj@delorie.com>2011-01-05 22:04:07 +0000
commitd960d576b6bf7dc12a29a244df35fa4e7373dca4 (patch)
tree172aa31825d159442138057977aa5301b1f3710c
parent1ba609a9c42f9cfeb111aec95b015c3f5eeafbc6 (diff)
downloadgdb-d960d576b6bf7dc12a29a244df35fa4e7373dca4.tar.gz
* reloc.c: Add BFD_RELOC_RX_OP_NEG.
* libbfd.h: Regenerate. * bfd-in2.h: Regenerate. * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg. * config/tc-rx.c (tc_gen_reloc): Emit an RX_OP_NEG expression instead of an RH_NEG32 one.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/bfd-in2.h1
-rw-r--r--bfd/elf32-rx.c1
-rw-r--r--bfd/libbfd.h1
-rw-r--r--bfd/reloc.c2
5 files changed, 12 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0369051236b..eb995889455 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-05 DJ Delorie <dj@redhat.com>
+
+ * reloc.c: Add BFD_RELOC_RX_OP_NEG.
+ * libbfd.h: Regenerate.
+ * bfd-in2.h: Regenerate.
+ * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
+
2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
* cpu-i386.c (bfd_i386_compatible): New.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index e75eb0d409e..8531f8de529 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -3991,6 +3991,7 @@ instructions */
BFD_RELOC_RX_GPRELL,
BFD_RELOC_RX_SYM,
BFD_RELOC_RX_OP_SUBTRACT,
+ BFD_RELOC_RX_OP_NEG,
BFD_RELOC_RX_ABS8,
BFD_RELOC_RX_ABS16,
BFD_RELOC_RX_ABS16_REV,
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index ac587efcaa4..7855d5ed149 100644
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -248,6 +248,7 @@ static const struct rx_reloc_map rx_reloc_map [] =
{ BFD_RELOC_RX_RELAX, R_RX_RH_RELAX },
{ BFD_RELOC_RX_SYM, R_RX_SYM },
{ BFD_RELOC_RX_OP_SUBTRACT, R_RX_OPsub },
+ { BFD_RELOC_RX_OP_NEG, R_RX_OPneg },
{ BFD_RELOC_RX_ABS8, R_RX_ABS8 },
{ BFD_RELOC_RX_ABS16, R_RX_ABS16 },
{ BFD_RELOC_RX_ABS16_REV, R_RX_ABS16_REV },
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 5687082c468..1cf63ceec4d 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -1800,6 +1800,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_RX_GPRELL",
"BFD_RELOC_RX_SYM",
"BFD_RELOC_RX_OP_SUBTRACT",
+ "BFD_RELOC_RX_OP_NEG",
"BFD_RELOC_RX_ABS8",
"BFD_RELOC_RX_ABS16",
"BFD_RELOC_RX_ABS16_REV",
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 6d4eb85232b..30919f2662c 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -4258,6 +4258,8 @@ ENUMX
ENUMX
BFD_RELOC_RX_OP_SUBTRACT
ENUMX
+ BFD_RELOC_RX_OP_NEG
+ENUMX
BFD_RELOC_RX_ABS8
ENUMX
BFD_RELOC_RX_ABS16