• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - 2>%t.err | llvm-readobj -sections | FileCheck %s
2// RUN: FileCheck --check-prefix=WARNING < %t.err %s
3
4// CHECK: Section {
5// CHECK-NEXT: Index: 0
6// CHECK-NEXT: Name: __text (
7
8// CHECK: Section {
9// CHECK-NEXT: Index: 1
10// CHECK-NEXT: Name: __textcoal_nt (
11
12// CHECK: Section {
13// CHECK-NEXT: Index: 2
14// CHECK-NEXT: Name: __const_coal (
15
16// CHECK: Section {
17// CHECK-NEXT: Index: 3
18// CHECK-NEXT: Name: __datacoal_nt (
19
20// WARNING: warning: section "__textcoal_nt" is deprecated
21// WARNING: note: change section name to "__text"
22// WARNING: warning: section "__const_coal" is deprecated
23// WARNING: note: change section name to "__const"
24// WARNING: warning: section "__datacoal_nt" is deprecated
25// WARNING: note: change section name to "__data"
26
27	.section	__TEXT,__textcoal_nt,coalesced,pure_instructions
28	.globl	_foo
29	.weak_definition	_foo
30	.align	4, 0x90
31_foo:
32	retq
33
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
48.subsections_via_symbols
49