brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 20d93df Raw
49 lines · plain
1// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - 2>%t.err | llvm-readobj --sections - | FileCheck %s2// RUN: FileCheck --check-prefix=WARNING < %t.err %s3 4// CHECK: Section {5// CHECK-NEXT: Index: 06// CHECK-NEXT: Name: __text (7 8// CHECK: Section {9// CHECK-NEXT: Index: 110// CHECK-NEXT: Name: __textcoal_nt (11 12// CHECK: Section {13// CHECK-NEXT: Index: 214// CHECK-NEXT: Name: __const_coal (15 16// CHECK: Section {17// CHECK-NEXT: Index: 318// CHECK-NEXT: Name: __datacoal_nt (19 20// WARNING: warning: section "__textcoal_nt" is deprecated21// WARNING: note: change section name to "__text"22// WARNING: warning: section "__const_coal" is deprecated23// WARNING: note: change section name to "__const"24// WARNING: warning: section "__datacoal_nt" is deprecated25// WARNING: note: change section name to "__data"26 27	.section	__TEXT,__textcoal_nt,coalesced,pure_instructions28	.globl	_foo29	.weak_definition	_foo30	.align	4, 0x9031_foo:32	retq33 34	.section	__TEXT,__const_coal,coalesced35	.globl	_a                      ## @a36	.weak_definition	_a37	.align	438_a:39	.long	1                       ## 0x140 41	.section	__DATA,__datacoal_nt,coalesced42	.globl	_b                      ## @b43	.weak_definition	_b44	.align	245_b:46	.long	5                       ## 0x547 48.subsections_via_symbols49