diff options
author | Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> | 2015-09-18 23:52:42 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> | 2015-09-19 00:34:11 -0700 |
commit | 2a13363e1734904b7be9111fe706e079ceaf0a41 (patch) | |
tree | 4a7ed3f84a36d0c0b0244379001815034f984c24 /binutils | |
parent | b5f8b26f0906486956ba27ade0c195f4480365e9 (diff) | |
download | riscv-gnu-toolchain-2a13363e1734904b7be9111fe706e079ceaf0a41.zip riscv-gnu-toolchain-2a13363e1734904b7be9111fe706e079ceaf0a41.tar.gz riscv-gnu-toolchain-2a13363e1734904b7be9111fe706e079ceaf0a41.tar.bz2 |
binutils: bfd: realign R_RISCV_RVC_BRANCH
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/bfd/elfxx-riscv.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/binutils/bfd/elfxx-riscv.c b/binutils/bfd/elfxx-riscv.c index 15ce86c..b55e54a 100644 --- a/binutils/bfd/elfxx-riscv.c +++ b/binutils/bfd/elfxx-riscv.c @@ -642,17 +642,17 @@ static reloc_howto_type howto_table[] = TRUE), /* pcrel_offset */ /* 8-bit PC-relative branch offset. */ - HOWTO (R_RISCV_RVC_BRANCH, /* type */ - 0, /* rightshift */ - 2, /* size (0 = byte, 1 = short, 2 = long) */ - 32, /* bitsize */ - TRUE, /* pc_relative */ - 0, /* bitpos */ - complain_overflow_signed, /* complain_on_overflow */ - bfd_elf_generic_reloc, /* special_function */ - "R_RISCV_RVC_BRANCH", /* name */ - FALSE, /* partial_inplace */ - 0, /* src_mask */ + HOWTO (R_RISCV_RVC_BRANCH, /* type */ + 0, /* rightshift */ + 2, /* size */ + 32, /* bitsize */ + TRUE, /* pc_relative */ + 0, /* bitpos */ + complain_overflow_signed, /* complain_on_overflow */ + bfd_elf_generic_reloc, /* special_function */ + "R_RISCV_RVC_BRANCH", /* name */ + FALSE, /* partial_inplace */ + 0, /* src_mask */ ENCODE_RVC_B_IMM (-1U), /* dst_mask */ TRUE), /* pcrel_offset */ |