Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-nm / print-size.test
blob4614fd1177cdc46f88354357a3f9dbce5b5b4525
1 # RUN: yaml2obj %s > %t.o
2 # RUN: llvm-nm --print-size %t.o | FileCheck %s --strict-whitespace
4 !ELF
5 FileHeader:
6   Class:   ELFCLASS64
7   Data:    ELFDATA2LSB
8   Type:    ET_REL
9   Machine: EM_X86_64
10 Sections:
11   - Name: .text
12     Type: SHT_PROGBITS
13 Symbols:
14   - Name:    a_symbol
15     Size:    0x123456789abcdef0
16     Section: .text
17     Binding: STB_GLOBAL
19 # CHECK: 0000000000000000 123456789abcdef0 N a_symbol