mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
[PowerPC] Add some missing PPC64 relocs
All R_PPC_... relocs should also be present (using the same number) under the corresponding R_PPC64_... name. The latter were missing for a couple of cases, which this patch adds. This is not a big problem when emitting the reloc, because we can just use the R_PPC_... define instead. But it is a problem when *dumping* relocations e.g. using llvm-readobj, because this will expect only R_PPC64_... values when inspecting a ppc64 ELF file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181451 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a3967b6844
commit
c37077af7b
@ -2069,10 +2069,18 @@ StringRef ELFObjectFile<ELFT>::getRelocationTypeName(uint32_t Type) const {
|
||||
switch (Type) {
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_NONE);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR32);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR24);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR16);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR16_LO);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR16_HI);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR16_HA);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR14);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR14_BRTAKEN);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR14_BRNTAKEN);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_REL24);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_REL14);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_REL14_BRTAKEN);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_REL14_BRNTAKEN);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_REL32);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR64);
|
||||
LLVM_ELF_SWITCH_RELOC_TYPE_NAME(R_PPC64_ADDR16_HIGHER);
|
||||
|
@ -468,10 +468,18 @@ enum {
|
||||
enum {
|
||||
R_PPC64_NONE = 0,
|
||||
R_PPC64_ADDR32 = 1,
|
||||
R_PPC64_ADDR24 = 2,
|
||||
R_PPC64_ADDR16 = 3,
|
||||
R_PPC64_ADDR16_LO = 4,
|
||||
R_PPC64_ADDR16_HI = 5,
|
||||
R_PPC64_ADDR16_HA = 6,
|
||||
R_PPC64_ADDR14 = 7,
|
||||
R_PPC64_ADDR14_BRTAKEN = 8,
|
||||
R_PPC64_ADDR14_BRNTAKEN = 9,
|
||||
R_PPC64_REL24 = 10,
|
||||
R_PPC64_REL14 = 11,
|
||||
R_PPC64_REL14_BRTAKEN = 12,
|
||||
R_PPC64_REL14_BRNTAKEN = 13,
|
||||
R_PPC64_REL32 = 26,
|
||||
R_PPC64_ADDR64 = 38,
|
||||
R_PPC64_ADDR16_HIGHER = 39,
|
||||
|
Loading…
Reference in New Issue
Block a user