aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-or1k.c
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2015-08-11 17:12:21 +0100
committerNick Clifton <nickc@redhat.com>2015-08-11 17:12:21 +0100
commitdbac553d28887561e3f154654ec8e70195d89943 (patch)
tree15681d85fe3a685f1edd10e63211f98d628ee1de /bfd/elf32-or1k.c
parent4c0160b8e2f902ecdf6a42dc20b5f39b0a48fac7 (diff)
downloadgdb-dbac553d28887561e3f154654ec8e70195d89943.zip
gdb-dbac553d28887561e3f154654ec8e70195d89943.tar.gz
gdb-dbac553d28887561e3f154654ec8e70195d89943.tar.bz2
Fix encoding or OpenRisk1000 PC relative relocations.
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.
Diffstat (limited to 'bfd/elf32-or1k.c')
-rw-r--r--bfd/elf32-or1k.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf32-or1k.c b/bfd/elf32-or1k.c
index efcefea..7cb093c 100644
--- a/bfd/elf32-or1k.c
+++ b/bfd/elf32-or1k.c
@@ -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. */