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
-
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
)
59 .dc.a __ehdr_start-0x80000000