1// REQUIRES: arm 2 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 5 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 %t.exe | FileCheck %s 9 10// CHECK: Section (5) .relr.dyn { 11// CHECK-NEXT: 0x301E8 R_ARM_RELATIVE - 0x0 12// CHECK-NEXT: 0x301EC R_ARM_RELATIVE - 0x0 13// CHECK-NEXT: 0x301F0 R_ARM_RELATIVE - 0x0 14// CHECK-NEXT: 0x301F4 R_ARM_RELATIVE - 0x0 15// CHECK-NEXT: 0x301F8 R_ARM_RELATIVE - 0x0 16// CHECK-NEXT: 0x301FC R_ARM_RELATIVE - 0x0 17// CHECK-NEXT: 0x30200 R_ARM_RELATIVE - 0x0 18// CHECK-NEXT: 0x30204 R_ARM_RELATIVE - 0x0 19// CHECK-NEXT: 0x30208 R_ARM_RELATIVE - 0x0 20// CHECK-NEXT: 0x3020C R_ARM_RELATIVE - 0x0 21// CHECK-NEXT: 0x30210 R_ARM_RELATIVE - 0x0 22// CHECK-NEXT: 0x30214 R_ARM_RELATIVE - 0x0 23// CHECK-NEXT: 0x30218 R_ARM_RELATIVE - 0x0 24// CHECK-NEXT: 0x3021C R_ARM_RELATIVE - 0x0 25// CHECK-NEXT: 0x30220 R_ARM_RELATIVE - 0x0 26// CHECK-NEXT: 0x30224 R_ARM_RELATIVE - 0x0 27// CHECK-NEXT: 0x30228 R_ARM_RELATIVE - 0x0 28// CHECK-NEXT: 0x3022C R_ARM_RELATIVE - 0x0 29// CHECK-NEXT: 0x30230 R_ARM_RELATIVE - 0x0 30// CHECK-NEXT: 0x30234 R_ARM_RELATIVE - 0x0 31// CHECK-NEXT: 0x30238 R_ARM_RELATIVE - 0x0 32// CHECK-NEXT: 0x3023C R_ARM_RELATIVE - 0x0 33// CHECK-NEXT: 0x30240 R_ARM_RELATIVE - 0x0 34// CHECK-NEXT: 0x30244 R_ARM_RELATIVE - 0x0 35// CHECK-NEXT: 0x30248 R_ARM_RELATIVE - 0x0 36// CHECK-NEXT: 0x3024C R_ARM_RELATIVE - 0x0 37// CHECK-NEXT: 0x30250 R_ARM_RELATIVE - 0x0 38// CHECK-NEXT: 0x30254 R_ARM_RELATIVE - 0x0 39// CHECK-NEXT: 0x30258 R_ARM_RELATIVE - 0x0 40// CHECK-NEXT: 0x3025C R_ARM_RELATIVE - 0x0 41// CHECK-NEXT: 0x30260 R_ARM_RELATIVE - 0x0 42// CHECK-NEXT: 0x30264 R_ARM_RELATIVE - 0x0 43// CHECK-NEXT: 0x30268 R_ARM_RELATIVE - 0x0 44// CHECK-NEXT: 0x3026C R_ARM_RELATIVE - 0x0 45// CHECK-NEXT: } 46 47// RUN: llvm-readobj -S --dynamic-table %t.exe | FileCheck --check-prefix=HEADER %s 48// HEADER: 0x00000023 RELRSZ 0xC 49 50.data 51.align 2 52.dc.a __ehdr_start 53.dc.a __ehdr_start 54.dc.a __ehdr_start 55.dc.a __ehdr_start 56.dc.a __ehdr_start 57.dc.a __ehdr_start 58.dc.a __ehdr_start 59.dc.a __ehdr_start 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