1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3# RUN: ld.lld %t.o -o %t1 --gc-sections
4# RUN: llvm-objdump -s %t1 | FileCheck %s
5
6# CHECK:      Contents of section .debug_str:
7# CHECK-NEXT:  0000 41414100 43434300 42424200           AAA.CCC.BBB.
8# CHECK:      Contents of section .foo:
9# CHECK-NEXT:  0000 2a000000
10# CHECK:      Contents of section .debug_info:
11# CHECK-NEXT:  0000 00000000 08000000
12
13.globl _start
14_start:
15
16.section .debug_str,"MS",@progbits,1
17.Linfo_string0:
18  .asciz "AAA"
19.Linfo_string1:
20  .asciz "BBB"
21.Linfo_string2:
22  .asciz "CCC"
23
24.section .foo,"M",@progbits,4
25.p2align 2
26  .long 42
27
28.section  .debug_info,"",@progbits
29  .long .Linfo_string0
30  .long .Linfo_string1
31