31 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3# RUN: ld.lld %t.o -o %t1 --gc-sections4# RUN: llvm-objdump -s %t1 | FileCheck %s5 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 2a00000010# CHECK: Contents of section .debug_info:11# CHECK-NEXT: 0000 00000000 0800000012 13.globl _start14_start:15 16.section .debug_str,"MS",@progbits,117.Linfo_string0:18 .asciz "AAA"19.Linfo_string1:20 .asciz "BBB"21.Linfo_string2:22 .asciz "CCC"23 24.section .foo,"M",@progbits,425.p2align 226 .long 4227 28.section .debug_info,"",@progbits29 .long .Linfo_string030 .long .Linfo_string131