Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
Don't expose R_RISCV_DELETE to the ELF ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
palmer-dabbelt committed May 19, 2017
1 parent af7bc71 commit 70723ec
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion bfd/bfd-in2.h
Original file line number Diff line number Diff line change
Expand Up @@ -4749,7 +4749,6 @@ number for the SBIC, SBIS, SBI and CBI instructions */
BFD_RELOC_RISCV_SET8,
BFD_RELOC_RISCV_SET16,
BFD_RELOC_RISCV_SET32,
BFD_RELOC_RISCV_DELETE,

/* Renesas RL78 Relocations. */
BFD_RELOC_RL78_NEG8,
Expand Down
1 change: 0 additions & 1 deletion bfd/elfxx-riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,6 @@ static const struct elf_reloc_map riscv_reloc_map[] =
{ BFD_RELOC_RISCV_SET8, R_RISCV_SET8 },
{ BFD_RELOC_RISCV_SET16, R_RISCV_SET16 },
{ BFD_RELOC_RISCV_SET32, R_RISCV_SET32 },
{ BFD_RELOC_RISCV_DELETE, R_RISCV_DELETE },
};

/* Given a BFD reloc type, return a howto structure. */
Expand Down
1 change: 0 additions & 1 deletion bfd/libbfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -2210,7 +2210,6 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
"BFD_RELOC_RISCV_SET8",
"BFD_RELOC_RISCV_SET16",
"BFD_RELOC_RISCV_SET32",
"BFD_RELOC_RISCV_DELETE",
"BFD_RELOC_RL78_NEG8",
"BFD_RELOC_RL78_NEG16",
"BFD_RELOC_RL78_NEG24",
Expand Down
2 changes: 0 additions & 2 deletions bfd/reloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5144,8 +5144,6 @@ ENUMX
BFD_RELOC_RISCV_SET16
ENUMX
BFD_RELOC_RISCV_SET32
ENUMX
BFD_RELOC_RISCV_DELETE
ENUMDOC
RISC-V relocations.
Expand Down
4 changes: 3 additions & 1 deletion include/elf/riscv.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ START_RELOC_NUMBERS (elf_riscv_reloc_type)
RELOC_NUMBER (R_RISCV_SET8, 54)
RELOC_NUMBER (R_RISCV_SET16, 55)
RELOC_NUMBER (R_RISCV_SET32, 56)
RELOC_NUMBER (R_RISCV_DELETE, 57)
END_RELOC_NUMBERS (R_RISCV_max)

/* Relocation types not emitted to binaries. */
#define R_RISCV_DELETE 127

/* Processor specific flags for the ELF header e_flags field. */

/* File may contain compressed instructions. */
Expand Down

0 comments on commit 70723ec

Please sign in to comment.