mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 09:49:43 +08:00
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.
This commit is contained in:

committed by
Nick Clifton

parent
4c0160b8e2
commit
dbac553d28
@ -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>
|
2015-08-11 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR binutils/18747
|
PR binutils/18747
|
||||||
|
@ -199,7 +199,7 @@ static reloc_howto_type or1k_elf_howto_table[] =
|
|||||||
FALSE, /* partial_inplace */
|
FALSE, /* partial_inplace */
|
||||||
0, /* src_mask */
|
0, /* src_mask */
|
||||||
0xffffffff, /* dst_mask */
|
0xffffffff, /* dst_mask */
|
||||||
FALSE), /* pcrel_offset */
|
TRUE), /* pcrel_offset */
|
||||||
|
|
||||||
HOWTO (R_OR1K_16_PCREL,
|
HOWTO (R_OR1K_16_PCREL,
|
||||||
0, /* rightshift */
|
0, /* rightshift */
|
||||||
@ -213,7 +213,7 @@ static reloc_howto_type or1k_elf_howto_table[] =
|
|||||||
FALSE, /* partial_inplace */
|
FALSE, /* partial_inplace */
|
||||||
0, /* src_mask */
|
0, /* src_mask */
|
||||||
0xffff, /* dst_mask */
|
0xffff, /* dst_mask */
|
||||||
FALSE), /* pcrel_offset */
|
TRUE), /* pcrel_offset */
|
||||||
|
|
||||||
HOWTO (R_OR1K_8_PCREL,
|
HOWTO (R_OR1K_8_PCREL,
|
||||||
0, /* rightshift */
|
0, /* rightshift */
|
||||||
@ -227,7 +227,7 @@ static reloc_howto_type or1k_elf_howto_table[] =
|
|||||||
FALSE, /* partial_inplace */
|
FALSE, /* partial_inplace */
|
||||||
0, /* src_mask */
|
0, /* src_mask */
|
||||||
0xff, /* dst_mask */
|
0xff, /* dst_mask */
|
||||||
FALSE), /* pcrel_offset */
|
TRUE), /* pcrel_offset */
|
||||||
|
|
||||||
HOWTO (R_OR1K_GOTPC_HI16, /* Type. */
|
HOWTO (R_OR1K_GOTPC_HI16, /* Type. */
|
||||||
16, /* Rightshift. */
|
16, /* Rightshift. */
|
||||||
|
Reference in New Issue
Block a user