forked from OSchip/llvm-project
36 lines
881 B
Plaintext
36 lines
881 B
Plaintext
# RUN: yaml2obj %s > %t.o
|
|
# RUN: llvm-nm %t.o --format=sysv | FileCheck %s
|
|
|
|
!ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
Symbols:
|
|
- Name: symbol_undefined
|
|
- Name: symbol
|
|
Section: .text
|
|
- Name: symbol_common
|
|
Index: SHN_COMMON
|
|
- Name: symbol_absolute
|
|
Index: SHN_ABS
|
|
- Name: proc
|
|
Index: 0xff01
|
|
- Name: os
|
|
Index: 0xff21
|
|
- Name: reserved
|
|
Index: 0xfffe
|
|
|
|
# CHECK: os {{.*}}|
|
|
# CHECK-NEXT: proc {{.*}}|
|
|
# CHECK-NEXT: reserved {{.*}}|
|
|
# CHECK-NEXT: symbol {{.*}}| |.text
|
|
# CHECK-NEXT: symbol_absolute {{.*}}| |*ABS*
|
|
# CHECK-NEXT: symbol_common {{.*}}| |*COM*
|
|
# CHECK-NEXT: symbol_undefined {{.*}}| |*UND*
|