[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / pack-dyn-relocs-arm2.s
blobed4fa52e7a5ab2e5cc7762bdfb9c4bd8bdc8b8cc
1 // REQUIRES: arm
3 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-shared.s -o %t.so.o
4 // RUN: ld.lld -shared %t.so.o -soname=t.so -o %t.so
6 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
7 // RUN: ld.lld -pie --pack-dyn-relocs=relr %t.o %t.so -o %t.exe
8 // RUN: llvm-readobj -r -x .data %t.exe | FileCheck %s
10 // CHECK: Section (5) .relr.dyn {
11 // CHECK-NEXT: 0x301E8 R_ARM_RELATIVE -
12 // CHECK-NEXT: 0x301EC R_ARM_RELATIVE -
13 // CHECK-NEXT: 0x301F0 R_ARM_RELATIVE -
14 // CHECK-NEXT: 0x301F4 R_ARM_RELATIVE -
15 // CHECK-NEXT: 0x301F8 R_ARM_RELATIVE -
16 // CHECK-NEXT: 0x301FC R_ARM_RELATIVE -
17 // CHECK-NEXT: 0x30200 R_ARM_RELATIVE -
18 // CHECK-NEXT: 0x30204 R_ARM_RELATIVE -
19 // CHECK-NEXT: 0x30208 R_ARM_RELATIVE -
20 // CHECK-NEXT: 0x3020C R_ARM_RELATIVE -
21 // CHECK-NEXT: 0x30210 R_ARM_RELATIVE -
22 // CHECK-NEXT: 0x30214 R_ARM_RELATIVE -
23 // CHECK-NEXT: 0x30218 R_ARM_RELATIVE -
24 // CHECK-NEXT: 0x3021C R_ARM_RELATIVE -
25 // CHECK-NEXT: 0x30220 R_ARM_RELATIVE -
26 // CHECK-NEXT: 0x30224 R_ARM_RELATIVE -
27 // CHECK-NEXT: 0x30228 R_ARM_RELATIVE -
28 // CHECK-NEXT: 0x3022C R_ARM_RELATIVE -
29 // CHECK-NEXT: 0x30230 R_ARM_RELATIVE -
30 // CHECK-NEXT: 0x30234 R_ARM_RELATIVE -
31 // CHECK-NEXT: 0x30238 R_ARM_RELATIVE -
32 // CHECK-NEXT: 0x3023C R_ARM_RELATIVE -
33 // CHECK-NEXT: 0x30240 R_ARM_RELATIVE -
34 // CHECK-NEXT: 0x30244 R_ARM_RELATIVE -
35 // CHECK-NEXT: 0x30248 R_ARM_RELATIVE -
36 // CHECK-NEXT: 0x3024C R_ARM_RELATIVE -
37 // CHECK-NEXT: 0x30250 R_ARM_RELATIVE -
38 // CHECK-NEXT: 0x30254 R_ARM_RELATIVE -
39 // CHECK-NEXT: 0x30258 R_ARM_RELATIVE -
40 // CHECK-NEXT: 0x3025C R_ARM_RELATIVE -
41 // CHECK-NEXT: 0x30260 R_ARM_RELATIVE -
42 // CHECK-NEXT: 0x30264 R_ARM_RELATIVE -
43 // CHECK-NEXT: 0x30268 R_ARM_RELATIVE -
44 // CHECK-NEXT: 0x3026C R_ARM_RELATIVE -
45 // CHECK-NEXT: }
46 // CHECK: Hex dump of section '.data':
47 // CHECK-NEXT: 0x000301e8 00000000 01000000 02000000 ffffffff .
48 // CHECK-NEXT: 0x000301f8 00000080 00000000 00000000 00000000 .
50 // RUN: llvm-readobj -S --dynamic-table %t.exe | FileCheck --check-prefix=HEADER %s
51 // HEADER: 0x00000023 RELRSZ 12 (bytes)
53 .data
54 .align 2
55 .dc.a __ehdr_start
56 .dc.a __ehdr_start+1
57 .dc.a __ehdr_start+2
58 .dc.a __ehdr_start-1
59 .dc.a __ehdr_start-0x80000000
60 .dc.a __ehdr_start
61 .dc.a __ehdr_start
62 .dc.a __ehdr_start
63 .dc.a __ehdr_start
64 .dc.a __ehdr_start
65 .dc.a __ehdr_start
66 .dc.a __ehdr_start
67 .dc.a __ehdr_start
68 .dc.a __ehdr_start
69 .dc.a __ehdr_start
70 .dc.a __ehdr_start
71 .dc.a __ehdr_start
72 .dc.a __ehdr_start
73 .dc.a __ehdr_start
74 .dc.a __ehdr_start
75 .dc.a __ehdr_start
76 .dc.a __ehdr_start
77 .dc.a __ehdr_start
78 .dc.a __ehdr_start
79 .dc.a __ehdr_start
80 .dc.a __ehdr_start
81 .dc.a __ehdr_start
82 .dc.a __ehdr_start
83 .dc.a __ehdr_start
84 .dc.a __ehdr_start
85 .dc.a __ehdr_start
86 .dc.a __ehdr_start
87 .dc.a __ehdr_start
88 .dc.a __ehdr_start