mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
d67dc1b4ef
This creates the next subfolders in the test directory: "COFF", "ELF", "MachO", "wasm". I've also removed platform specific prefixes, like "coff-*". One unused binary was removed as well: `Inputs/relocs.obj.elf-mips` Differential revision: https://reviews.llvm.org/D71203
27 lines
599 B
Plaintext
27 lines
599 B
Plaintext
## Check llvm-readobj is able to dump relocations that
|
|
## do not use symbols.
|
|
|
|
# RUN: yaml2obj %s -o %t
|
|
# RUN: llvm-readobj -r %t | FileCheck %s
|
|
|
|
# CHECK: Relocations [
|
|
# CHECK-NEXT: Section (1) .rela.plt {
|
|
# CHECK-NEXT: 0x12345678 R_X86_64_IRELATIVE - 0x87654321
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: ]
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .rela.plt
|
|
Type: SHT_RELA
|
|
Flags: [ SHF_ALLOC ]
|
|
Relocations:
|
|
- Offset: 0x12345678
|
|
Type: R_X86_64_IRELATIVE
|
|
Addend: 0x87654321
|