aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu>2015-09-18 23:45:10 -0700
committerPalmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu>2015-09-19 00:34:07 -0700
commit44c230f4008d93d2aab855cf3afd384ff2b245e4 (patch)
tree39570b88cc9af772a55bb6ea21d4cda28bdb25f7 /binutils
parent657cd90740ec43e4e095e1ce149bf0b8837000a4 (diff)
downloadriscv-gnu-toolchain-44c230f4008d93d2aab855cf3afd384ff2b245e4.zip
riscv-gnu-toolchain-44c230f4008d93d2aab855cf3afd384ff2b245e4.tar.gz
riscv-gnu-toolchain-44c230f4008d93d2aab855cf3afd384ff2b245e4.tar.bz2
binutils: bfd: realign R_RISCV_CALL
Diffstat (limited to 'binutils')
-rw-r--r--binutils/bfd/elfxx-riscv.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/binutils/bfd/elfxx-riscv.c b/binutils/bfd/elfxx-riscv.c
index 8b3e1d4..b3210c6 100644
--- a/binutils/bfd/elfxx-riscv.c
+++ b/binutils/bfd/elfxx-riscv.c
@@ -249,19 +249,20 @@ static reloc_howto_type howto_table[] =
TRUE), /* pcrel_offset */
/* 32-bit PC-relative function call (AUIPC/JALR). */
- HOWTO (R_RISCV_CALL, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 64, /* bitsize */
- TRUE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- bfd_elf_generic_reloc, /* special_function */
- "R_RISCV_CALL", /* name */
- FALSE, /* partial_inplace */
- 0, /* src_mask */
- ENCODE_UTYPE_IMM (-1U) | ((bfd_vma) ENCODE_ITYPE_IMM (-1U) << 32), /* dst_mask */
- TRUE), /* pcrel_offset */
+ HOWTO (R_RISCV_CALL, /* type */
+ 0, /* rightshift */
+ 2, /* size */
+ 64, /* bitsize */
+ TRUE, /* pc_relative */
+ 0, /* bitpos */
+ complain_overflow_dont, /* complain_on_overflow */
+ bfd_elf_generic_reloc, /* special_function */
+ "R_RISCV_CALL", /* name */
+ FALSE, /* partial_inplace */
+ 0, /* src_mask */
+ ENCODE_UTYPE_IMM (-1U) | ((bfd_vma) ENCODE_ITYPE_IMM (-1U) << 32),
+ /* dst_mask */
+ TRUE), /* pcrel_offset */
/* 32-bit PC-relative function call (AUIPC/JALR). */
HOWTO (R_RISCV_CALL_PLT, /* type */