1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
// REQUIRES: arm, aarch64
// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-shared.s -o %t.so.o
// RUN: ld.lld -shared %t.so.o -o %t.so
// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
// RUN: ld.lld -pie --pack-dyn-relocs=relr %t.o %t.so -o %t.exe
// RUN: llvm-readobj -relocations %t.exe | FileCheck %s
// CHECK: Section (5) .relr.dyn {
// CHECK-NEXT: 0x1000 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1004 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1008 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x100C R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1010 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1014 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1018 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x101C R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1020 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1024 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1028 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x102C R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1030 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1034 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1038 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x103C R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1040 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1044 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1048 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x104C R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1050 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1054 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1058 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x105C R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1060 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1064 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1068 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x106C R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1070 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1074 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1078 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x107C R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1080 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: 0x1084 R_ARM_RELATIVE - 0x0
// CHECK-NEXT: }
// RUN: llvm-readobj -s -dynamic-table %t.exe | FileCheck --check-prefix=HEADER %s
// HEADER: 0x00000023 RELRSZ 0xC
.data
.align 2
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
.dc.a __ehdr_start
|