1// RUN: llvm-mc -triple powerpc-apple-darwin8 -arch=ppc32 -filetype=obj %s -o - | llvm-readobj -sections | FileCheck %s
2
3// CHECK: Section {
4// CHECK-NEXT: Index: 0
5
6// CHECK: Section {
7// CHECK-NEXT: Index: 1
8// CHECK-NEXT: Name: __textcoal_nt (
9
10// CHECK: Section {
11// CHECK-NEXT: Index: 2
12
13// CHECK: Section {
14// CHECK-NEXT: Index: 3
15// CHECK-NEXT: Name: __const_coal (
16
17// CHECK: Section {
18// CHECK-NEXT: Index: 4
19// CHECK-NEXT: Name: __datacoal_nt (
20
21  .section  __TEXT,__text,regular,pure_instructions
22  .machine ppc
23  .section  __TEXT,__textcoal_nt,coalesced,pure_instructions
24  .section  __TEXT,__symbol_stub1,symbol_stubs,pure_instructions,16
25  .section  __TEXT,__text,regular,pure_instructions
26  .section  __TEXT,__textcoal_nt,coalesced,pure_instructions
27  .globl  _foo
28  .weak_definition  _foo
29  .align  4
30_foo:
31	blr
32
33.subsections_via_symbols
34	.section	__TEXT,__const_coal,coalesced
35	.globl	_a                      ; @a
36	.weak_definition	_a
37	.align	4
38_a:
39	.long	1                       ; 0x1
40
41	.section	__DATA,__datacoal_nt,coalesced
42	.globl	_b                      ; @b
43	.weak_definition	_b
44	.align	2
45_b:
46	.long	5                       ; 0x5
47