summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-nm/print-size.test
blob: 4614fd1177cdc46f88354357a3f9dbce5b5b4525 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# RUN: yaml2obj %s > %t.o
# RUN: llvm-nm --print-size %t.o | FileCheck %s --strict-whitespace

!ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_REL
  Machine: EM_X86_64
Sections:
  - Name: .text
    Type: SHT_PROGBITS
Symbols:
  - Name:    a_symbol
    Size:    0x123456789abcdef0
    Section: .text
    Binding: STB_GLOBAL

# CHECK: 0000000000000000 123456789abcdef0 N a_symbol
OpenPOWER on IntegriCloud