annotate lld/test/ELF/debug-gc.s @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # REQUIRES: x86
anatofuz
parents:
diff changeset
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
anatofuz
parents:
diff changeset
3 # RUN: ld.lld %t.o -o %t1 --gc-sections
anatofuz
parents:
diff changeset
4 # RUN: llvm-objdump -s %t1 | FileCheck %s
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 # CHECK: Contents of section .debug_str:
anatofuz
parents:
diff changeset
7 # CHECK-NEXT: 0000 41414100 43434300 42424200 AAA.CCC.BBB.
anatofuz
parents:
diff changeset
8 # CHECK: Contents of section .foo:
anatofuz
parents:
diff changeset
9 # CHECK-NEXT: 0000 2a000000
anatofuz
parents:
diff changeset
10 # CHECK: Contents of section .debug_info:
anatofuz
parents:
diff changeset
11 # CHECK-NEXT: 0000 00000000 08000000
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 .globl _start
anatofuz
parents:
diff changeset
14 _start:
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 .section .debug_str,"MS",@progbits,1
anatofuz
parents:
diff changeset
17 .Linfo_string0:
anatofuz
parents:
diff changeset
18 .asciz "AAA"
anatofuz
parents:
diff changeset
19 .Linfo_string1:
anatofuz
parents:
diff changeset
20 .asciz "BBB"
anatofuz
parents:
diff changeset
21 .Linfo_string2:
anatofuz
parents:
diff changeset
22 .asciz "CCC"
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 .section .foo,"M",@progbits,4
anatofuz
parents:
diff changeset
25 .p2align 2
anatofuz
parents:
diff changeset
26 .long 42
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 .section .debug_info,"",@progbits
anatofuz
parents:
diff changeset
29 .long .Linfo_string0
anatofuz
parents:
diff changeset
30 .long .Linfo_string1