summaryrefslogtreecommitdiff
path: root/test/MC/ELF/file.s
blob: 1e10531c204827f53c6304f2c262ff1cd24bcd96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s

// Test that the STT_FILE symbol precedes the other local symbols.

.file "foo"
foa:
// CHECK:    # Symbol 1
// CHECK-NEXT:    (('st_name', 1) # 'foo'
// CHECK-NEXT:     ('st_bind', 0)
// CHECK-NEXT:     ('st_type', 4)
// CHECK-NEXT:     ('st_other', 0)
// CHECK-NEXT:     ('st_shndx', 65521)
// CHECK-NEXT:     ('st_value', 0)
// CHECK-NEXT:     ('st_size', 0)
// CHECK-NEXT:    ),
// CHECK-NEXT:    # Symbol 2
// CHECK-NEXT:    (('st_name', 5) # 'foa'
// CHECK-NEXT:     ('st_bind', 0)
// CHECK-NEXT:     ('st_type', 0)
// CHECK-NEXT:     ('st_other', 0)
// CHECK-NEXT:     ('st_shndx', 1)
// CHECK-NEXT:     ('st_value', 0)
// CHECK-NEXT:     ('st_size', 0)