mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[lib/ObjectYAML] - Make ELFYAML::Relocation::Offset
optional.
Currently `yaml2obj` require `Offset` field in a relocation description. There are many cases when `Offset` is insignificant in a context of a test case. Making `Offset` optional allows to simplify our test cases. This is what this patch does. Also, with this patch `obj2yaml` does not dump a zero offset of a relocation. Differential revision: https://reviews.llvm.org/D75608
This commit is contained in:
parent
c7b1639486
commit
26d8b75a51
@ -1568,7 +1568,7 @@ void MappingTraits<ELFYAML::Relocation>::mapping(IO &IO,
|
||||
const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext());
|
||||
assert(Object && "The IO context is not initialized");
|
||||
|
||||
IO.mapRequired("Offset", Rel.Offset);
|
||||
IO.mapOptional("Offset", Rel.Offset, (Hex64)0);
|
||||
IO.mapOptional("Symbol", Rel.Symbol);
|
||||
|
||||
if (Object->Header.Machine == ELFYAML::ELF_EM(ELF::EM_MIPS) &&
|
||||
|
@ -8,8 +8,7 @@
|
||||
# CHECK-NEXT: EntSize: 0x0000000000000018
|
||||
# CHECK-NEXT: Info: .text
|
||||
# CHECK-NEXT: Relocations:
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Symbol: main
|
||||
# CHECK-NEXT: - Symbol: main
|
||||
# CHECK-NEXT: Type: R_AARCH64_ABS64
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000008
|
||||
# CHECK-NEXT: Symbol: main
|
||||
@ -33,8 +32,7 @@ Sections:
|
||||
Info: .text
|
||||
AddressAlign: 0x08
|
||||
Relocations:
|
||||
- Offset: 0
|
||||
Symbol: main
|
||||
- Symbol: main
|
||||
Type: R_AARCH64_ABS64
|
||||
Addend: 0
|
||||
- Offset: 8
|
||||
|
@ -37,8 +37,7 @@ Sections:
|
||||
Info: .text
|
||||
AddressAlign: 0x08
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_AMDGPU_NONE
|
||||
- Type: R_AMDGPU_NONE
|
||||
- Offset: 0x2
|
||||
Type: R_AMDGPU_ABS32_LO
|
||||
- Offset: 0x4
|
||||
|
@ -31,8 +31,7 @@ Sections:
|
||||
Info: .text
|
||||
AddressAlign: 0x04
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Symbol: main
|
||||
- Symbol: main
|
||||
Type: R_LANAI_32
|
||||
- Offset: 0x4
|
||||
Type: R_LANAI_NONE
|
||||
|
@ -25,8 +25,7 @@ Sections:
|
||||
Info: .text
|
||||
AddressAlign: 0x04
|
||||
Relocations:
|
||||
- Offset: 0
|
||||
Symbol: main
|
||||
- Symbol: main
|
||||
Type: R_386_32
|
||||
|
||||
Symbols:
|
||||
|
@ -25,5 +25,4 @@ Sections:
|
||||
Type: SHT_RELA
|
||||
Info: .foo
|
||||
Relocations:
|
||||
- Offset: 0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
|
@ -365,8 +365,7 @@
|
||||
# ELF-MIPSEL-NEXT: EntSize: 0x0000000000000008
|
||||
# ELF-MIPSEL-NEXT: Info: .text
|
||||
# ELF-MIPSEL-NEXT: Relocations:
|
||||
# ELF-MIPSEL-NEXT: - Offset: 0x0000000000000000
|
||||
# ELF-MIPSEL-NEXT: Symbol: _gp_disp
|
||||
# ELF-MIPSEL-NEXT: - Symbol: _gp_disp
|
||||
# ELF-MIPSEL-NEXT: Type: R_MIPS_HI16
|
||||
# ELF-MIPSEL-NEXT: - Offset: 0x0000000000000004
|
||||
# ELF-MIPSEL-NEXT: Symbol: _gp_disp
|
||||
@ -487,8 +486,7 @@
|
||||
# ELF-MIPS64EL-NEXT: EntSize: 0x0000000000000018
|
||||
# ELF-MIPS64EL-NEXT: Info: .data
|
||||
# ELF-MIPS64EL-NEXT: Relocations:
|
||||
# ELF-MIPS64EL-NEXT: - Offset: 0
|
||||
# ELF-MIPS64EL-NEXT: Symbol: zed
|
||||
# ELF-MIPS64EL-NEXT: - Symbol: zed
|
||||
# ELF-MIPS64EL-NEXT: Type: R_MIPS_64
|
||||
# ELF-MIPS64EL-NEXT: - Name: .bss
|
||||
# ELF-MIPS64EL-NEXT: Type: SHT_NOBITS
|
||||
|
@ -26,8 +26,7 @@ Sections:
|
||||
Link: .symtab
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Symbol: .section
|
||||
- Symbol: .section
|
||||
Type: R_386_32
|
||||
- Offset: 0x1
|
||||
Symbol: symbol
|
||||
@ -62,8 +61,7 @@ Sections:
|
||||
Link: .symtab
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Symbol: .section
|
||||
- Symbol: .section
|
||||
Type: R_X86_64_32S
|
||||
- Offset: 0x1
|
||||
Symbol: symbol
|
||||
|
@ -28,8 +28,7 @@ Sections:
|
||||
Type: SHT_RELA
|
||||
Link: .dynsym
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Symbol: 1 ## Index of a dynamic symbol with a broken st_name.
|
||||
- Symbol: 1 ## Index of a dynamic symbol with a broken st_name.
|
||||
Type: R_X86_64_NONE
|
||||
- Name: .dynamic
|
||||
Type: SHT_DYNAMIC
|
||||
@ -67,8 +66,7 @@ Sections:
|
||||
- Name: .rela.dyn
|
||||
Type: SHT_RELA
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
- Name: .dynamic
|
||||
Type: SHT_DYNAMIC
|
||||
Entries:
|
||||
@ -104,8 +102,7 @@ Sections:
|
||||
- Name: .rela.dyn
|
||||
Type: SHT_RELA
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
- Name: .dynamic
|
||||
Type: SHT_DYNAMIC
|
||||
Entries:
|
||||
@ -141,8 +138,7 @@ Sections:
|
||||
- Name: .rela.dyn
|
||||
Type: SHT_REL
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_386_NONE
|
||||
- Type: R_386_NONE
|
||||
- Name: .dynamic
|
||||
Type: SHT_DYNAMIC
|
||||
Entries:
|
||||
@ -178,8 +174,7 @@ Sections:
|
||||
- Name: .rela.dyn
|
||||
Type: SHT_REL
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_386_NONE
|
||||
- Type: R_386_NONE
|
||||
- Name: .dynamic
|
||||
Type: SHT_DYNAMIC
|
||||
Entries:
|
||||
@ -354,8 +349,7 @@ Sections:
|
||||
- Name: .rela.plt
|
||||
Type: SHT_RELA
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
- Name: .dynamic
|
||||
Type: SHT_DYNAMIC
|
||||
Entries:
|
||||
@ -403,10 +397,8 @@ Sections:
|
||||
- Name: .rela.dyn
|
||||
Type: SHT_RELA
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_X86_64_NONE
|
||||
- Offset: 0x0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
Symbol: 0x1
|
||||
- Name: .dynamic
|
||||
Type: SHT_DYNAMIC
|
||||
@ -451,8 +443,7 @@ Sections:
|
||||
- Name: .rela.dyn
|
||||
Type: SHT_RELA
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
Symbol: 0x2
|
||||
- Name: .dynamic
|
||||
Type: SHT_DYNAMIC
|
||||
|
@ -29,8 +29,7 @@ Sections:
|
||||
- Name: .rela.dyn
|
||||
Type: SHT_RELA
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
Symbol: 0x1
|
||||
- Name: .dynamic
|
||||
Type: SHT_DYNAMIC
|
||||
|
@ -144,8 +144,7 @@ Sections:
|
||||
EntSize: 0x0000000000000018
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_AARCH64_NONE
|
||||
- Type: R_AARCH64_NONE
|
||||
- Offset: 0x0000000000000004
|
||||
Type: R_AARCH64_ABS64
|
||||
- Offset: 0x0000000000000008
|
||||
|
@ -153,8 +153,7 @@ Sections:
|
||||
EntSize: 0x0000000000000008
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_ARM_NONE
|
||||
- Type: R_ARM_NONE
|
||||
- Offset: 0x0000000000000004
|
||||
Type: R_ARM_PC24
|
||||
- Offset: 0x0000000000000008
|
||||
|
@ -30,8 +30,7 @@ Sections:
|
||||
EntSize: 0x000000000000000C
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_LANAI_NONE
|
||||
- Type: R_LANAI_NONE
|
||||
- Offset: 0x0000000000000004
|
||||
Type: R_LANAI_21
|
||||
- Offset: 0x0000000000000008
|
||||
|
@ -74,8 +74,7 @@ Sections:
|
||||
EntSize: 0x0000000000000008
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_MIPS_NONE
|
||||
- Type: R_MIPS_NONE
|
||||
- Offset: 0x0000000000000004
|
||||
Type: R_MIPS_16
|
||||
- Offset: 0x0000000000000008
|
||||
|
@ -74,8 +74,7 @@ Sections:
|
||||
EntSize: 0x0000000000000018
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_MIPS_NONE
|
||||
- Type: R_MIPS_NONE
|
||||
- Offset: 0x0000000000000004
|
||||
Type: R_MIPS_16
|
||||
Type2: R_MIPS_16
|
||||
|
@ -108,189 +108,96 @@ Sections:
|
||||
- Name: .rela.text
|
||||
Type: SHT_RELA
|
||||
Relocations:
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_NONE
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR32
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR24
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR14
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR14_BRTAKEN
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR14_BRNTAKEN
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL24
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL14
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL14_BRTAKEN
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL14_BRNTAKEN
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_COPY
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GLOB_DAT
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_JMP_SLOT
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_RELATIVE
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL32
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR64
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGHER
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGHERA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGHEST
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGHESTA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL64
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TLS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPMOD64
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL64
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL64
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSGD16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSGD16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSGD16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSGD16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSLD16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSLD16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSLD16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSLD16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TPREL16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TPREL16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TPREL16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TPREL16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_DTPREL16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_DTPREL16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_DTPREL16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_DTPREL16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGHER
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGHERA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGHEST
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGHESTA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGHER
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGHERA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGHEST
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGHESTA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TLSGD
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TLSLD
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGH
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGHA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGH
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGHA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGH
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGHA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_IRELATIVE
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL16_HA
|
||||
- Type: R_PPC64_NONE
|
||||
- Type: R_PPC64_ADDR32
|
||||
- Type: R_PPC64_ADDR24
|
||||
- Type: R_PPC64_ADDR16
|
||||
- Type: R_PPC64_ADDR16_LO
|
||||
- Type: R_PPC64_ADDR16_HI
|
||||
- Type: R_PPC64_ADDR16_HA
|
||||
- Type: R_PPC64_ADDR14
|
||||
- Type: R_PPC64_ADDR14_BRTAKEN
|
||||
- Type: R_PPC64_ADDR14_BRNTAKEN
|
||||
- Type: R_PPC64_REL24
|
||||
- Type: R_PPC64_REL14
|
||||
- Type: R_PPC64_REL14_BRTAKEN
|
||||
- Type: R_PPC64_REL14_BRNTAKEN
|
||||
- Type: R_PPC64_GOT16
|
||||
- Type: R_PPC64_GOT16_LO
|
||||
- Type: R_PPC64_GOT16_HI
|
||||
- Type: R_PPC64_GOT16_HA
|
||||
- Type: R_PPC64_COPY
|
||||
- Type: R_PPC64_GLOB_DAT
|
||||
- Type: R_PPC64_JMP_SLOT
|
||||
- Type: R_PPC64_RELATIVE
|
||||
- Type: R_PPC64_REL32
|
||||
- Type: R_PPC64_ADDR64
|
||||
- Type: R_PPC64_ADDR16_HIGHER
|
||||
- Type: R_PPC64_ADDR16_HIGHERA
|
||||
- Type: R_PPC64_ADDR16_HIGHEST
|
||||
- Type: R_PPC64_ADDR16_HIGHESTA
|
||||
- Type: R_PPC64_REL64
|
||||
- Type: R_PPC64_TOC16
|
||||
- Type: R_PPC64_TOC16_LO
|
||||
- Type: R_PPC64_TOC16_HI
|
||||
- Type: R_PPC64_TOC16_HA
|
||||
- Type: R_PPC64_TOC
|
||||
- Type: R_PPC64_ADDR16_DS
|
||||
- Type: R_PPC64_ADDR16_LO_DS
|
||||
- Type: R_PPC64_GOT16_DS
|
||||
- Type: R_PPC64_GOT16_LO_DS
|
||||
- Type: R_PPC64_TOC16_DS
|
||||
- Type: R_PPC64_TOC16_LO_DS
|
||||
- Type: R_PPC64_TLS
|
||||
- Type: R_PPC64_DTPMOD64
|
||||
- Type: R_PPC64_TPREL16
|
||||
- Type: R_PPC64_TPREL16_LO
|
||||
- Type: R_PPC64_TPREL16_HI
|
||||
- Type: R_PPC64_TPREL16_HA
|
||||
- Type: R_PPC64_TPREL64
|
||||
- Type: R_PPC64_DTPREL16
|
||||
- Type: R_PPC64_DTPREL16_LO
|
||||
- Type: R_PPC64_DTPREL16_HI
|
||||
- Type: R_PPC64_DTPREL16_HA
|
||||
- Type: R_PPC64_DTPREL64
|
||||
- Type: R_PPC64_GOT_TLSGD16
|
||||
- Type: R_PPC64_GOT_TLSGD16_LO
|
||||
- Type: R_PPC64_GOT_TLSGD16_HI
|
||||
- Type: R_PPC64_GOT_TLSGD16_HA
|
||||
- Type: R_PPC64_GOT_TLSLD16
|
||||
- Type: R_PPC64_GOT_TLSLD16_LO
|
||||
- Type: R_PPC64_GOT_TLSLD16_HI
|
||||
- Type: R_PPC64_GOT_TLSLD16_HA
|
||||
- Type: R_PPC64_GOT_TPREL16_DS
|
||||
- Type: R_PPC64_GOT_TPREL16_LO_DS
|
||||
- Type: R_PPC64_GOT_TPREL16_HI
|
||||
- Type: R_PPC64_GOT_TPREL16_HA
|
||||
- Type: R_PPC64_GOT_DTPREL16_DS
|
||||
- Type: R_PPC64_GOT_DTPREL16_LO_DS
|
||||
- Type: R_PPC64_GOT_DTPREL16_HI
|
||||
- Type: R_PPC64_GOT_DTPREL16_HA
|
||||
- Type: R_PPC64_TPREL16_DS
|
||||
- Type: R_PPC64_TPREL16_LO_DS
|
||||
- Type: R_PPC64_TPREL16_HIGHER
|
||||
- Type: R_PPC64_TPREL16_HIGHERA
|
||||
- Type: R_PPC64_TPREL16_HIGHEST
|
||||
- Type: R_PPC64_TPREL16_HIGHESTA
|
||||
- Type: R_PPC64_DTPREL16_DS
|
||||
- Type: R_PPC64_DTPREL16_LO_DS
|
||||
- Type: R_PPC64_DTPREL16_HIGHER
|
||||
- Type: R_PPC64_DTPREL16_HIGHERA
|
||||
- Type: R_PPC64_DTPREL16_HIGHEST
|
||||
- Type: R_PPC64_DTPREL16_HIGHESTA
|
||||
- Type: R_PPC64_TLSGD
|
||||
- Type: R_PPC64_TLSLD
|
||||
- Type: R_PPC64_ADDR16_HIGH
|
||||
- Type: R_PPC64_ADDR16_HIGHA
|
||||
- Type: R_PPC64_TPREL16_HIGH
|
||||
- Type: R_PPC64_TPREL16_HIGHA
|
||||
- Type: R_PPC64_DTPREL16_HIGH
|
||||
- Type: R_PPC64_DTPREL16_HIGHA
|
||||
- Type: R_PPC64_IRELATIVE
|
||||
- Type: R_PPC64_REL16
|
||||
- Type: R_PPC64_REL16_LO
|
||||
- Type: R_PPC64_REL16_HI
|
||||
- Type: R_PPC64_REL16_HA
|
||||
|
@ -47,11 +47,9 @@ Sections:
|
||||
Info: .text
|
||||
Relocations:
|
||||
## Case 1: There is no symbol with index 0xFEFEFEFE.
|
||||
- Offset: 0x0
|
||||
Symbol: 0xFEFEFEFE
|
||||
- Symbol: 0xFEFEFEFE
|
||||
Type: R_X86_64_NONE
|
||||
- Offset: 0x0
|
||||
Symbol: 0xFEFEFEFE
|
||||
- Symbol: 0xFEFEFEFE
|
||||
Type: R_X86_64_NONE
|
||||
## Case 2: Test that no warning is reported for a relocation against a symbol with index 0.
|
||||
- Offset: 0x2
|
||||
|
@ -129,8 +129,7 @@ Sections:
|
||||
Type: SHT_REL
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Symbol: rel_0
|
||||
- Symbol: rel_0
|
||||
Type: R_X86_64_NONE
|
||||
- Offset: 0x1
|
||||
Symbol: rel_neg
|
||||
@ -145,8 +144,7 @@ Sections:
|
||||
Type: SHT_RELA
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Symbol: rela_0
|
||||
- Symbol: rela_0
|
||||
Type: R_X86_64_NONE
|
||||
Addend: 0
|
||||
- Offset: 0x1
|
||||
@ -315,8 +313,7 @@ Sections:
|
||||
Type: SHT_REL
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Symbol: rel_0
|
||||
- Symbol: rel_0
|
||||
Type: R_386_NONE
|
||||
- Offset: 0x1
|
||||
Symbol: rel_neg
|
||||
@ -328,8 +325,7 @@ Sections:
|
||||
Type: SHT_RELA
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Symbol: rela_0
|
||||
- Symbol: rela_0
|
||||
Type: R_386_NONE
|
||||
Addend: 0
|
||||
- Offset: 0x1
|
||||
|
@ -84,8 +84,7 @@ Symbols:
|
||||
# RUN: obj2yaml %t2 | FileCheck %s --check-prefix=CASE2
|
||||
|
||||
# CASE2: Relocations:
|
||||
# CASE2-NEXT: - Offset: 0x0000000000000000
|
||||
# CASE2-NEXT: Symbol: 'foo [1]'
|
||||
# CASE2-NEXT: - Symbol: 'foo [1]'
|
||||
# CASE2-NEXT: Type: R_X86_64_PC32
|
||||
# CASE2-NEXT: - Offset: 0x0000000000000004
|
||||
# CASE2-NEXT: Symbol: foo
|
||||
@ -110,7 +109,6 @@ Sections:
|
||||
Link: .symtab
|
||||
Relocations:
|
||||
- Type: R_X86_64_PC32
|
||||
Offset: 0
|
||||
Symbol: 'foo [1]'
|
||||
- Type: R_X86_64_PC32
|
||||
Offset: 4
|
||||
|
@ -14,190 +14,98 @@
|
||||
# CHECK-NEXT: Type: SHT_RELA
|
||||
# CHECK-NEXT: EntSize: 0x0000000000000018
|
||||
# CHECK-NEXT: Relocations:
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_NONE
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR32
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR24
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_LO
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_HI
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_HA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR14
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR14_BRTAKEN
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR14_BRNTAKEN
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_REL24
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_REL14
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_REL14_BRTAKEN
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_REL14_BRNTAKEN
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT16
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT16_LO
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT16_HI
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT16_HA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GLOB_DAT
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_JMP_SLOT
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_RELATIVE
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_REL32
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR64
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_HIGHER
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_HIGHERA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_HIGHEST
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_HIGHESTA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_REL64
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TOC16
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TOC16_LO
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TOC16_HI
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TOC16_HA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TOC
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_LO_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT16_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT16_LO_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TOC16_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TOC16_LO_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TLS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPMOD64
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_LO
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_HI
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_HA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL64
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_LO
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_HI
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_HA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL64
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TLSGD16
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TLSGD16_LO
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TLSGD16_HI
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TLSGD16_HA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TLSLD16
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TLSLD16_LO
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TLSLD16_HI
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TLSLD16_HA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TPREL16_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TPREL16_LO_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TPREL16_HI
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_TPREL16_HA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_DTPREL16_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_DTPREL16_LO_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_DTPREL16_HI
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_GOT_DTPREL16_HA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_LO_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_HIGHER
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_HIGHERA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_HIGHEST
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_HIGHESTA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_LO_DS
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_HIGHER
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_HIGHERA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_HIGHEST
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_HIGHESTA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TLSGD
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TLSLD
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_HIGH
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_ADDR16_HIGHA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_HIGH
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_TPREL16_HIGHA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_HIGH
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_DTPREL16_HIGHA
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_IRELATIVE
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_REL16
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_REL16_LO
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_REL16_HI
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_PPC64_REL16_HA
|
||||
# CHECK-NEXT: - Type: R_PPC64_NONE
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR32
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR24
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_LO
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_HI
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_HA
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR14
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR14_BRTAKEN
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR14_BRNTAKEN
|
||||
# CHECK-NEXT: - Type: R_PPC64_REL24
|
||||
# CHECK-NEXT: - Type: R_PPC64_REL14
|
||||
# CHECK-NEXT: - Type: R_PPC64_REL14_BRTAKEN
|
||||
# CHECK-NEXT: - Type: R_PPC64_REL14_BRNTAKEN
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT16
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT16_LO
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT16_HI
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT16_HA
|
||||
# CHECK-NEXT: - Type: R_PPC64_GLOB_DAT
|
||||
# CHECK-NEXT: - Type: R_PPC64_JMP_SLOT
|
||||
# CHECK-NEXT: - Type: R_PPC64_RELATIVE
|
||||
# CHECK-NEXT: - Type: R_PPC64_REL32
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR64
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_HIGHER
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_HIGHERA
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_HIGHEST
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_HIGHESTA
|
||||
# CHECK-NEXT: - Type: R_PPC64_REL64
|
||||
# CHECK-NEXT: - Type: R_PPC64_TOC16
|
||||
# CHECK-NEXT: - Type: R_PPC64_TOC16_LO
|
||||
# CHECK-NEXT: - Type: R_PPC64_TOC16_HI
|
||||
# CHECK-NEXT: - Type: R_PPC64_TOC16_HA
|
||||
# CHECK-NEXT: - Type: R_PPC64_TOC
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_LO_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT16_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT16_LO_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_TOC16_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_TOC16_LO_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_TLS
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPMOD64
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_LO
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_HI
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_HA
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL64
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_LO
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_HI
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_HA
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL64
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TLSGD16
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TLSGD16_LO
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TLSGD16_HI
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TLSGD16_HA
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TLSLD16
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TLSLD16_LO
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TLSLD16_HI
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TLSLD16_HA
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TPREL16_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TPREL16_LO_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TPREL16_HI
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_TPREL16_HA
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_DTPREL16_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_DTPREL16_LO_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_DTPREL16_HI
|
||||
# CHECK-NEXT: - Type: R_PPC64_GOT_DTPREL16_HA
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_LO_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_HIGHER
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_HIGHERA
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_HIGHEST
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_HIGHESTA
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_LO_DS
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_HIGHER
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_HIGHERA
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_HIGHEST
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_HIGHESTA
|
||||
# CHECK-NEXT: - Type: R_PPC64_TLSGD
|
||||
# CHECK-NEXT: - Type: R_PPC64_TLSLD
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_HIGH
|
||||
# CHECK-NEXT: - Type: R_PPC64_ADDR16_HIGHA
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_HIGH
|
||||
# CHECK-NEXT: - Type: R_PPC64_TPREL16_HIGHA
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_HIGH
|
||||
# CHECK-NEXT: - Type: R_PPC64_DTPREL16_HIGHA
|
||||
# CHECK-NEXT: - Type: R_PPC64_IRELATIVE
|
||||
# CHECK-NEXT: - Type: R_PPC64_REL16
|
||||
# CHECK-NEXT: - Type: R_PPC64_REL16_LO
|
||||
# CHECK-NEXT: - Type: R_PPC64_REL16_HI
|
||||
# CHECK-NEXT: - Type: R_PPC64_REL16_HA
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
@ -209,187 +117,95 @@ Sections:
|
||||
- Name: .rela.text
|
||||
Type: SHT_RELA
|
||||
Relocations:
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_NONE
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR32
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR24
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR14
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR14_BRTAKEN
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR14_BRNTAKEN
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL24
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL14
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL14_BRTAKEN
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL14_BRNTAKEN
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GLOB_DAT
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_JMP_SLOT
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_RELATIVE
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL32
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR64
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGHER
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGHERA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGHEST
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGHESTA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL64
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TOC16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TLS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPMOD64
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL64
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL64
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSGD16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSGD16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSGD16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSGD16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSLD16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSLD16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSLD16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TLSLD16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TPREL16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TPREL16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TPREL16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_TPREL16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_DTPREL16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_DTPREL16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_DTPREL16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_GOT_DTPREL16_HA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGHER
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGHERA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGHEST
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGHESTA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_LO_DS
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGHER
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGHERA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGHEST
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGHESTA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TLSGD
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TLSLD
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGH
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_ADDR16_HIGHA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGH
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_TPREL16_HIGHA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGH
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_DTPREL16_HIGHA
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_IRELATIVE
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL16
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL16_LO
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL16_HI
|
||||
- Offset: 0x0000000000000000
|
||||
Type: R_PPC64_REL16_HA
|
||||
- Type: R_PPC64_NONE
|
||||
- Type: R_PPC64_ADDR32
|
||||
- Type: R_PPC64_ADDR24
|
||||
- Type: R_PPC64_ADDR16
|
||||
- Type: R_PPC64_ADDR16_LO
|
||||
- Type: R_PPC64_ADDR16_HI
|
||||
- Type: R_PPC64_ADDR16_HA
|
||||
- Type: R_PPC64_ADDR14
|
||||
- Type: R_PPC64_ADDR14_BRTAKEN
|
||||
- Type: R_PPC64_ADDR14_BRNTAKEN
|
||||
- Type: R_PPC64_REL24
|
||||
- Type: R_PPC64_REL14
|
||||
- Type: R_PPC64_REL14_BRTAKEN
|
||||
- Type: R_PPC64_REL14_BRNTAKEN
|
||||
- Type: R_PPC64_GOT16
|
||||
- Type: R_PPC64_GOT16_LO
|
||||
- Type: R_PPC64_GOT16_HI
|
||||
- Type: R_PPC64_GOT16_HA
|
||||
- Type: R_PPC64_GLOB_DAT
|
||||
- Type: R_PPC64_JMP_SLOT
|
||||
- Type: R_PPC64_RELATIVE
|
||||
- Type: R_PPC64_REL32
|
||||
- Type: R_PPC64_ADDR64
|
||||
- Type: R_PPC64_ADDR16_HIGHER
|
||||
- Type: R_PPC64_ADDR16_HIGHERA
|
||||
- Type: R_PPC64_ADDR16_HIGHEST
|
||||
- Type: R_PPC64_ADDR16_HIGHESTA
|
||||
- Type: R_PPC64_REL64
|
||||
- Type: R_PPC64_TOC16
|
||||
- Type: R_PPC64_TOC16_LO
|
||||
- Type: R_PPC64_TOC16_HI
|
||||
- Type: R_PPC64_TOC16_HA
|
||||
- Type: R_PPC64_TOC
|
||||
- Type: R_PPC64_ADDR16_DS
|
||||
- Type: R_PPC64_ADDR16_LO_DS
|
||||
- Type: R_PPC64_GOT16_DS
|
||||
- Type: R_PPC64_GOT16_LO_DS
|
||||
- Type: R_PPC64_TOC16_DS
|
||||
- Type: R_PPC64_TOC16_LO_DS
|
||||
- Type: R_PPC64_TLS
|
||||
- Type: R_PPC64_DTPMOD64
|
||||
- Type: R_PPC64_TPREL16
|
||||
- Type: R_PPC64_TPREL16_LO
|
||||
- Type: R_PPC64_TPREL16_HI
|
||||
- Type: R_PPC64_TPREL16_HA
|
||||
- Type: R_PPC64_TPREL64
|
||||
- Type: R_PPC64_DTPREL16
|
||||
- Type: R_PPC64_DTPREL16_LO
|
||||
- Type: R_PPC64_DTPREL16_HI
|
||||
- Type: R_PPC64_DTPREL16_HA
|
||||
- Type: R_PPC64_DTPREL64
|
||||
- Type: R_PPC64_GOT_TLSGD16
|
||||
- Type: R_PPC64_GOT_TLSGD16_LO
|
||||
- Type: R_PPC64_GOT_TLSGD16_HI
|
||||
- Type: R_PPC64_GOT_TLSGD16_HA
|
||||
- Type: R_PPC64_GOT_TLSLD16
|
||||
- Type: R_PPC64_GOT_TLSLD16_LO
|
||||
- Type: R_PPC64_GOT_TLSLD16_HI
|
||||
- Type: R_PPC64_GOT_TLSLD16_HA
|
||||
- Type: R_PPC64_GOT_TPREL16_DS
|
||||
- Type: R_PPC64_GOT_TPREL16_LO_DS
|
||||
- Type: R_PPC64_GOT_TPREL16_HI
|
||||
- Type: R_PPC64_GOT_TPREL16_HA
|
||||
- Type: R_PPC64_GOT_DTPREL16_DS
|
||||
- Type: R_PPC64_GOT_DTPREL16_LO_DS
|
||||
- Type: R_PPC64_GOT_DTPREL16_HI
|
||||
- Type: R_PPC64_GOT_DTPREL16_HA
|
||||
- Type: R_PPC64_TPREL16_DS
|
||||
- Type: R_PPC64_TPREL16_LO_DS
|
||||
- Type: R_PPC64_TPREL16_HIGHER
|
||||
- Type: R_PPC64_TPREL16_HIGHERA
|
||||
- Type: R_PPC64_TPREL16_HIGHEST
|
||||
- Type: R_PPC64_TPREL16_HIGHESTA
|
||||
- Type: R_PPC64_DTPREL16_DS
|
||||
- Type: R_PPC64_DTPREL16_LO_DS
|
||||
- Type: R_PPC64_DTPREL16_HIGHER
|
||||
- Type: R_PPC64_DTPREL16_HIGHERA
|
||||
- Type: R_PPC64_DTPREL16_HIGHEST
|
||||
- Type: R_PPC64_DTPREL16_HIGHESTA
|
||||
- Type: R_PPC64_TLSGD
|
||||
- Type: R_PPC64_TLSLD
|
||||
- Type: R_PPC64_ADDR16_HIGH
|
||||
- Type: R_PPC64_ADDR16_HIGHA
|
||||
- Type: R_PPC64_TPREL16_HIGH
|
||||
- Type: R_PPC64_TPREL16_HIGHA
|
||||
- Type: R_PPC64_DTPREL16_HIGH
|
||||
- Type: R_PPC64_DTPREL16_HIGHA
|
||||
- Type: R_PPC64_IRELATIVE
|
||||
- Type: R_PPC64_REL16
|
||||
- Type: R_PPC64_REL16_LO
|
||||
- Type: R_PPC64_REL16_HI
|
||||
- Type: R_PPC64_REL16_HA
|
||||
|
@ -19,8 +19,7 @@
|
||||
# CHECK-NEXT: EntSize: 0x0000000000000018
|
||||
# CHECK-NEXT: Info: .text
|
||||
# CHECK-NEXT: Relocations:
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000000
|
||||
# CHECK-NEXT: Type: R_X86_64_NONE
|
||||
# CHECK-NEXT: - Type: R_X86_64_NONE
|
||||
# CHECK-NEXT: - Offset: 0x0000000000000004
|
||||
# CHECK-NEXT: Type: R_X86_64_NONE
|
||||
# CHECK-NEXT: ...
|
||||
@ -39,8 +38,7 @@ Sections:
|
||||
Type: SHT_RELA
|
||||
Info: .text
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
- Offset: 0x4
|
||||
Type: R_X86_64_NONE
|
||||
Symbol: 0
|
||||
|
@ -90,8 +90,7 @@ Sections:
|
||||
Info: .text
|
||||
Link: .symtab
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
Symbol: foo
|
||||
- Offset: 0x1
|
||||
Type: R_X86_64_NONE
|
||||
|
@ -28,8 +28,7 @@ Sections:
|
||||
Link: .dynsym
|
||||
Info: .data
|
||||
Relocations:
|
||||
- Offset: 0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
Symbol: dynamic
|
||||
- Offset: 8
|
||||
Type: R_X86_64_NONE
|
||||
|
@ -27,10 +27,8 @@ Sections:
|
||||
Link: .symtab
|
||||
Relocations:
|
||||
- Type: R_X86_64_PC32
|
||||
Offset: 0
|
||||
Symbol: 0x42
|
||||
- Type: R_X86_64_PC32
|
||||
Offset: 0
|
||||
Symbol: 0x1
|
||||
Symbols:
|
||||
- Name: foo
|
||||
|
@ -23,8 +23,6 @@ Sections:
|
||||
Link: .symtab
|
||||
Relocations:
|
||||
- Type: R_X86_64_PC32
|
||||
Offset: 0
|
||||
Symbol: does_not_exist1
|
||||
- Type: R_X86_64_PC32
|
||||
Offset: 0
|
||||
Symbol: does_not_exist2
|
||||
|
@ -76,8 +76,7 @@ Sections:
|
||||
- Name: .rela.data
|
||||
Type: SHT_RELA
|
||||
Relocations:
|
||||
- Offset: 0x0
|
||||
Type: R_X86_64_NONE
|
||||
- Type: R_X86_64_NONE
|
||||
Symbol: foo
|
||||
Symbols:
|
||||
- Name: foo
|
||||
|
Loading…
Reference in New Issue
Block a user