llvm.org GIT mirror llvm / e40dbd6
Widen ELFYAML relocation type to 32 bits The current 8 bits is sufficient for ELF32 targets but ELF64 requires 32 bits. Add a test for AArch64 that exposes the issue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222898 91177308-0d34-0410-b5e6-96231b3b80d8 Will Newton 5 years ago
2 changed file(s) with 10 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3939 // Just use 64, since it can hold 32-bit values too.
4040 LLVM_YAML_STRONG_TYPEDEF(uint64_t, ELF_EF)
4141 LLVM_YAML_STRONG_TYPEDEF(uint32_t, ELF_SHT)
42 LLVM_YAML_STRONG_TYPEDEF(uint8_t, ELF_REL)
42 LLVM_YAML_STRONG_TYPEDEF(uint32_t, ELF_REL)
4343 // Just use 64, since it can hold 32-bit values too.
4444 LLVM_YAML_STRONG_TYPEDEF(uint64_t, ELF_SHF)
4545 LLVM_YAML_STRONG_TYPEDEF(uint8_t, ELF_STT)
1010 # CHECK-NEXT: Symbol: main
1111 # CHECK-NEXT: Type: R_AARCH64_ABS64
1212 # CHECK-NEXT: Addend: 0
13 # CHECK-NEXT: - Offset: 0x0000000000000008
14 # CHECK-NEXT: Symbol: main
15 # CHECK-NEXT: Type: R_AARCH64_TLSGD_ADR_PREL21
16 # CHECK-NEXT: Addend: 0
1317
1418 FileHeader:
1519 Class: ELFCLASS64
2125 Name: .text
2226 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
2327 AddressAlign: 0x04
24 Content: 0000000000000000
28 Content: 00000000000000000000000000000000
2529 - Type: SHT_RELA
2630 Name: .rela.text
2731 Link: .symtab
3135 - Offset: 0
3236 Symbol: main
3337 Type: R_AARCH64_ABS64
38 Addend: 0
39 - Offset: 8
40 Symbol: main
41 Type: R_AARCH64_TLSGD_ADR_PREL21
3442 Addend: 0
3543
3644 Symbols: