Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-nm / format-sysv-layout.test
blobc2cc5c2c477f402065e239deb24aa7763a0c08a4
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llvm-nm %t.o --debug-syms --format=sysv | FileCheck %s -DFILE=%t.o --strict-whitespace
3 # RUN: llvm-nm %t.o --debug-syms -fsysv | FileCheck %s -DFILE=%t.o --strict-whitespace
4 # RUN: llvm-nm %t.o --debug-syms -f sysv | FileCheck %s -DFILE=%t.o --strict-whitespace
6 !ELF
7 FileHeader:
8   Class:   ELFCLASS64
9   Data:    ELFDATA2LSB
10   Type:    ET_REL
11   Machine: EM_X86_64
12 Sections:
13   - Name:  .text
14     Type:  SHT_PROGBITS
15     Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
16 Symbols:
17   - Name:    symbol_with_a_significantly_longer_name
18     Section: .text
19   - Name:    symbol
20     Section: .text
21   - Name:    symbol_2
22     Type:    STT_FUNC
24 # CHECK:       Symbols from [[FILE]]:
25 # CHECK-EMPTY:
26 # CHECK-NEXT: Name                  Value           Class        Type         Size             Line  Section
27 # CHECK-NEXT: symbol              |0000000000000000|   t  |            NOTYPE|0000000000000000|     |.text
28 # CHECK-NEXT: symbol_2            |                |   U  |              FUNC|                |     |*UND*
29 # CHECK-NEXT: symbol_with_a_significantly_longer_name|0000000000000000|   t  |            NOTYPE|0000000000000000|     |.text