blob: 26b9974eff505dcc1e2e77b53274f0e09ded55e6 [file] [log] [blame]
Rafael Espindolaad49cf52010-09-18 15:03:21 +00001// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
2
3// Test that the STT_FILE symbol precedes the other local symbols.
4
5.file "foo"
6foa:
Jason W Kime7d4a4c2010-10-18 21:32:41 +00007// CHECK: # Symbol 0x1
8// CHECK-NEXT: (('st_name', 0x1) # 'foo'
9// CHECK-NEXT: ('st_bind', 0x0)
10// CHECK-NEXT: ('st_type', 0x4)
11// CHECK-NEXT: ('st_other', 0x0)
12// CHECK-NEXT: ('st_shndx', 0xfff1)
13// CHECK-NEXT: ('st_value', 0x0)
14// CHECK-NEXT: ('st_size', 0x0)
Rafael Espindolaad49cf52010-09-18 15:03:21 +000015// CHECK-NEXT: ),
Jason W Kime7d4a4c2010-10-18 21:32:41 +000016// CHECK-NEXT: # Symbol 0x2
17// CHECK-NEXT: (('st_name', 0x5) # 'foa'
18// CHECK-NEXT: ('st_bind', 0x0)
19// CHECK-NEXT: ('st_type', 0x0)
20// CHECK-NEXT: ('st_other', 0x0)
21// CHECK-NEXT: ('st_shndx', 0x1)
22// CHECK-NEXT: ('st_value', 0x0)
23// CHECK-NEXT: ('st_size', 0x0)