Fix encoding or OpenRisk1000 PC relative relocations.
authorPeter Zotov <whitequark@whitequark.org>
Tue, 11 Aug 2015 16:12:21 +0000 (17:12 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 16:12:21 +0000 (17:12 +0100)
PR ld/18759
* elf32-or1k.c (R_OR1K_32_PCREL): Set pcrel_offset to TRUE.
(R_OR1K_16_PCREL): Likewise.
(R_OR1K_8_PCREL): Likewise.

bfd/ChangeLog
bfd/elf32-or1k.c

index cac285e73848780d80b60eeb783f9d542c78dc55..f152cdcb120e34a3ba2349ed9f9308b00e79f050 100644 (file)
@@ -1,3 +1,10 @@
+2015-08-11  Peter Zotov  <whitequark@whitequark.org>
+
+       PR ld/18759
+       * elf32-or1k.c (R_OR1K_32_PCREL): Set pcrel_offset to TRUE.
+       (R_OR1K_16_PCREL): Likewise.
+       (R_OR1K_8_PCREL): Likewise.
+
 2015-08-11  Nick Clifton  <nickc@redhat.com>
 
        PR binutils/18747
index efcefea45425d7f91a9c90ad1c7474a3f8f5d8a1..7cb093caea5ccfad7ef7aff9f9496a1e7bf5491a 100644 (file)
@@ -199,7 +199,7 @@ static reloc_howto_type or1k_elf_howto_table[] =
          FALSE,                 /* partial_inplace */
          0,                     /* src_mask */
          0xffffffff,            /* dst_mask */
-         FALSE),                /* pcrel_offset */
+         TRUE),                 /* pcrel_offset */
 
   HOWTO (R_OR1K_16_PCREL,
          0,                     /* rightshift */
@@ -213,7 +213,7 @@ static reloc_howto_type or1k_elf_howto_table[] =
          FALSE,                 /* partial_inplace */
          0,                     /* src_mask */
          0xffff,                /* dst_mask */
-         FALSE),                /* pcrel_offset */
+         TRUE),                 /* pcrel_offset */
 
   HOWTO (R_OR1K_8_PCREL,
          0,                     /* rightshift */
@@ -227,7 +227,7 @@ static reloc_howto_type or1k_elf_howto_table[] =
          FALSE,                 /* partial_inplace */
          0,                     /* src_mask */
          0xff,                  /* dst_mask */
-         FALSE),                /* pcrel_offset */
+         TRUE),                 /* pcrel_offset */
 
    HOWTO (R_OR1K_GOTPC_HI16,    /* Type.  */
          16,                    /* Rightshift.  */