2 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
3 # RUN: %lld -lSystem -o %t.out %t.o -dead_strip
4 # RUN: llvm-otool -l %t.out | FileCheck --check-prefix=SECT %s
5 # RUN: llvm-otool -vs __TEXT __cstring %t.out | FileCheck %s
7 # SECT: sectname __cstring
8 # SECT-NEXT: segname __TEXT
12 # SECT-NEXT: align 2^4 (16)
14 # CHECK: 0 \303Q043\005\376\334\272\230vT2\020\001
17 .section __TEXT,__cstring,cstring_literals
19 _foo
: # Dead. External, has symbol table entry, gets stripped.
24 .asciz "hi" # External, has symbol table entry.
27 L_internal_aligned_16
: # Has no symbol table entry.
28 .asciz "\303Q043\005\376\334\272\230vT2\020\001"
30 L_internal_nonaligned
:
41 movq L_internal_nonaligned
(%rip
), %rax
42 movq L_internal_aligned_8
(%rip
), %rax
43 movaps L_internal_aligned_16
(%rip
), %xmm0
46 .subsections_via_symbols