diff options
author | Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> | 2015-09-18 23:53:20 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu> | 2015-09-19 00:34:12 -0700 |
commit | 54f01e7959eb9be24bf9b2bf06b5657233b8ee6e (patch) | |
tree | 5f0f0d4a66dd908b1255e24d42f186fff56aa660 /binutils | |
parent | e2bf38290441effcaca116fec0c1965644232d46 (diff) | |
download | riscv-gnu-toolchain-54f01e7959eb9be24bf9b2bf06b5657233b8ee6e.zip riscv-gnu-toolchain-54f01e7959eb9be24bf9b2bf06b5657233b8ee6e.tar.gz riscv-gnu-toolchain-54f01e7959eb9be24bf9b2bf06b5657233b8ee6e.tar.bz2 |
binutils: bfd: numerous smaller relocation cleanups
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/bfd/elfxx-riscv.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/binutils/bfd/elfxx-riscv.c b/binutils/bfd/elfxx-riscv.c index db88535..f316ca0 100644 --- a/binutils/bfd/elfxx-riscv.c +++ b/binutils/bfd/elfxx-riscv.c @@ -304,10 +304,10 @@ static reloc_howto_type howto_table[] = complain_overflow_dont, /* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_RISCV_TLS_GOT_HI20", /* name */ - FALSE, /* partial_inplace */ - 0, /* src_mask */ + FALSE, /* partial_inplace */ + 0, /* src_mask */ ENCODE_UTYPE_IMM (-1U), /* dst_mask */ - FALSE), /* pcrel_offset */ + FALSE), /* pcrel_offset */ /* High 20 bits of 32-bit PC-relative TLS GD GOT reference. */ HOWTO (R_RISCV_TLS_GD_HI20, /* type */ @@ -322,7 +322,7 @@ static reloc_howto_type howto_table[] = FALSE, /* partial_inplace */ 0, /* src_mask */ ENCODE_UTYPE_IMM (-1U), /* dst_mask */ - FALSE), /* pcrel_offset */ + FALSE), /* pcrel_offset */ /* High 20 bits of 32-bit PC-relative reference. */ HOWTO (R_RISCV_PCREL_HI20, /* type */ @@ -337,7 +337,7 @@ static reloc_howto_type howto_table[] = FALSE, /* partial_inplace */ 0, /* src_mask */ ENCODE_UTYPE_IMM (-1U), /* dst_mask */ - TRUE), /* pcrel_offset */ + TRUE), /* pcrel_offset */ /* Low 12 bits of a 32-bit PC-relative load or add. */ HOWTO (R_RISCV_PCREL_LO12_I, /* type */ @@ -352,7 +352,7 @@ static reloc_howto_type howto_table[] = FALSE, /* partial_inplace */ 0, /* src_mask */ ENCODE_ITYPE_IMM (-1U), /* dst_mask */ - FALSE), /* pcrel_offset */ + FALSE), /* pcrel_offset */ /* Low 12 bits of a 32-bit PC-relative store. */ HOWTO (R_RISCV_PCREL_LO12_S, /* type */ @@ -367,7 +367,7 @@ static reloc_howto_type howto_table[] = FALSE, /* partial_inplace */ 0, /* src_mask */ ENCODE_STYPE_IMM (-1U), /* dst_mask */ - FALSE), /* pcrel_offset */ + FALSE), /* pcrel_offset */ /* High 20 bits of 32-bit absolute address. */ HOWTO (R_RISCV_HI20, /* type */ @@ -379,10 +379,10 @@ static reloc_howto_type howto_table[] = complain_overflow_dont, /* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_RISCV_HI20", /* name */ - FALSE, /* partial_inplace */ - 0, /* src_mask */ + FALSE, /* partial_inplace */ + 0, /* src_mask */ ENCODE_UTYPE_IMM (-1U), /* dst_mask */ - FALSE), /* pcrel_offset */ + FALSE), /* pcrel_offset */ /* High 12 bits of 32-bit load or add. */ HOWTO (R_RISCV_LO12_I, /* type */ @@ -397,7 +397,7 @@ static reloc_howto_type howto_table[] = FALSE, /* partial_inplace */ 0, /* src_mask */ ENCODE_ITYPE_IMM (-1U), /* dst_mask */ - FALSE), /* pcrel_offset */ + FALSE), /* pcrel_offset */ /* High 12 bits of 32-bit store. */ HOWTO (R_RISCV_LO12_S, /* type */ @@ -412,7 +412,7 @@ static reloc_howto_type howto_table[] = FALSE, /* partial_inplace */ 0, /* src_mask */ ENCODE_STYPE_IMM (-1U), /* dst_mask */ - FALSE), /* pcrel_offset */ + FALSE), /* pcrel_offset */ /* High 20 bits of TLS LE thread pointer offset. */ HOWTO (R_RISCV_TPREL_HI20, /* type */ @@ -427,7 +427,7 @@ static reloc_howto_type howto_table[] = TRUE, /* partial_inplace */ 0, /* src_mask */ ENCODE_UTYPE_IMM (-1U), /* dst_mask */ - FALSE), /* pcrel_offset */ + FALSE), /* pcrel_offset */ /* Low 12 bits of TLS LE thread pointer offset for loads and adds. */ HOWTO (R_RISCV_TPREL_LO12_I, /* type */ @@ -442,7 +442,7 @@ static reloc_howto_type howto_table[] = FALSE, /* partial_inplace */ 0, /* src_mask */ ENCODE_ITYPE_IMM (-1U), /* dst_mask */ - FALSE), /* pcrel_offset */ + FALSE), /* pcrel_offset */ /* Low 12 bits of TLS LE thread pointer offset for stores. */ HOWTO (R_RISCV_TPREL_LO12_S, /* type */ @@ -457,7 +457,7 @@ static reloc_howto_type howto_table[] = FALSE, /* partial_inplace */ 0, /* src_mask */ ENCODE_STYPE_IMM (-1U), /* dst_mask */ - FALSE), /* pcrel_offset */ + FALSE), /* pcrel_offset */ /* TLS LE thread pointer usage. */ HOWTO (R_RISCV_TPREL_ADD, /* type */ @@ -654,7 +654,7 @@ static reloc_howto_type howto_table[] = FALSE, /* partial_inplace */ 0, /* src_mask */ ENCODE_RVC_B_IMM (-1U), /* dst_mask */ - TRUE), /* pcrel_offset */ + TRUE), /* pcrel_offset */ /* 11-bit PC-relative jump offset. */ HOWTO (R_RISCV_RVC_JUMP, /* type */ @@ -672,7 +672,7 @@ static reloc_howto_type howto_table[] = FALSE, /* partial_inplace */ 0, /* src_mask */ ENCODE_RVC_J_IMM (-1U), /* dst_mask */ - TRUE), /* pcrel_offset */ + TRUE), /* pcrel_offset */ }; /* A mapping from BFD reloc types to RISC-V ELF reloc types. */ |