2017-11-30 01:44:22 +01:00
|
|
|
# RUN: yaml2obj %s -o %t.o
|
2018-01-12 23:09:19 +01:00
|
|
|
# RUN: llvm-readobj -r %t.o 2>&1 | FileCheck %s
|
2017-11-30 01:44:22 +01:00
|
|
|
|
2020-03-12 06:00:19 +01:00
|
|
|
# CHECK: Format: elf64-x86-64
|
2018-01-12 23:09:19 +01:00
|
|
|
# CHECK-NEXT: Arch: x86_64
|
|
|
|
# CHECK-NEXT: AddressSize: 64bit
|
|
|
|
# CHECK-NEXT: LoadName:
|
|
|
|
# CHECK-NEXT: Relocations [
|
|
|
|
# CHECK-NEXT: Section (2) .rela.foo {
|
|
|
|
# CHECK-NEXT: 0x0 R_X86_64_NONE - 0x0
|
|
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK-NEXT: ]
|
2017-11-30 01:44:22 +01:00
|
|
|
|
|
|
|
--- !ELF
|
|
|
|
FileHeader:
|
|
|
|
Class: ELFCLASS64
|
|
|
|
Data: ELFDATA2LSB
|
|
|
|
Type: ET_REL
|
|
|
|
Machine: EM_X86_64
|
|
|
|
Sections:
|
|
|
|
- Name: .foo
|
|
|
|
Type: SHT_PROGBITS
|
|
|
|
Content: 42
|
|
|
|
- Name: .rela.foo
|
|
|
|
Type: SHT_RELA
|
|
|
|
Info: .foo
|
|
|
|
Relocations:
|
2020-03-04 14:55:15 +01:00
|
|
|
- Type: R_X86_64_NONE
|