annotate lld/test/ELF/compress-debug-sections-reloc.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 0572611fdcc8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # REQUIRES: x86, zlib
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
anatofuz
parents:
diff changeset
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/compress-debug.s -o %t2.o
anatofuz
parents:
diff changeset
5 # RUN: ld.lld %t2.o %t.o -o %t1 --compress-debug-sections=zlib -Ttext=0
anatofuz
parents:
diff changeset
6 # RUN: llvm-dwarfdump %t1 -debug-str | FileCheck %s
anatofuz
parents:
diff changeset
7 # These two checks correspond to the patched values of a_sym and a_debug_sym.
anatofuz
parents:
diff changeset
8 # D = 0x44 - address of .text input section for this file (the start address of
anatofuz
parents:
diff changeset
9 # .text is 0 as requested on the command line, and the size of the
anatofuz
parents:
diff changeset
10 # preceding .text in the other input file is 0x44).
anatofuz
parents:
diff changeset
11 # C = 0x43 - offset of .debug_info section for this file (the size of
anatofuz
parents:
diff changeset
12 # the preceding .debug_info from the other input file is 0x43).
anatofuz
parents:
diff changeset
13 # CHECK: 0x00000000: "D"
anatofuz
parents:
diff changeset
14 # CHECK: 0x00000004: "C"
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 .text
anatofuz
parents:
diff changeset
17 a_sym:
anatofuz
parents:
diff changeset
18 nop
anatofuz
parents:
diff changeset
19
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
20 .section .debug_str,"MS",@progbits,1
150
anatofuz
parents:
diff changeset
21 .long a_sym
anatofuz
parents:
diff changeset
22 .long a_debug_sym
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 .section .debug_info,"",@progbits
anatofuz
parents:
diff changeset
25 a_debug_sym:
anatofuz
parents:
diff changeset
26 .long 0x88776655