diff options
author | Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> | 2015-09-18 23:52:59 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> | 2015-09-19 00:34:12 -0700 |
commit | e2bf38290441effcaca116fec0c1965644232d46 (patch) | |
tree | c9063f7a82071a0aee5335ff2478c049c0852c0e /binutils | |
parent | 2a13363e1734904b7be9111fe706e079ceaf0a41 (diff) | |
download | riscv-gnu-toolchain-e2bf38290441effcaca116fec0c1965644232d46.zip riscv-gnu-toolchain-e2bf38290441effcaca116fec0c1965644232d46.tar.gz riscv-gnu-toolchain-e2bf38290441effcaca116fec0c1965644232d46.tar.bz2 |
binutils: bfd: realign R_RISCV_RVC_JUMP
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/bfd/elfxx-riscv.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/binutils/bfd/elfxx-riscv.c b/binutils/bfd/elfxx-riscv.c index b55e54a..db88535 100644 --- a/binutils/bfd/elfxx-riscv.c +++ b/binutils/bfd/elfxx-riscv.c @@ -657,20 +657,20 @@ static reloc_howto_type howto_table[] = TRUE), /* pcrel_offset */ /* 11-bit PC-relative jump offset. */ - HOWTO (R_RISCV_RVC_JUMP, /* type */ - 0, /* rightshift */ - 2, /* size (0 = byte, 1 = short, 2 = long) */ - 32, /* bitsize */ - TRUE, /* pc_relative */ - 0, /* bitpos */ - complain_overflow_dont, /* complain_on_overflow */ - /* This needs complex overflow - detection, because the upper 36 - bits must match the PC + 4. */ - bfd_elf_generic_reloc, /* special_function */ - "R_RISCV_RVC_JUMP", /* name */ - FALSE, /* partial_inplace */ - 0, /* src_mask */ + HOWTO (R_RISCV_RVC_JUMP, /* type */ + 0, /* rightshift */ + 2, /* size */ + 32, /* bitsize */ + TRUE, /* pc_relative */ + 0, /* bitpos */ + complain_overflow_dont, /* complain_on_overflow */ + /* This needs complex overflow + detection, because the upper 36 + bits must match the PC + 4. */ + bfd_elf_generic_reloc, /* special_function */ + "R_RISCV_RVC_JUMP", /* name */ + FALSE, /* partial_inplace */ + 0, /* src_mask */ ENCODE_RVC_J_IMM (-1U), /* dst_mask */ TRUE), /* pcrel_offset */ }; |