brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · d4ee783 Raw
33 lines · plain
1// REQUIRES: aarch642 3// RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o4// RUN: ld.lld --xosegment %t.o -o %t.so -shared5// RUN: llvm-readelf -l %t.so | FileCheck --implicit-check-not=LOAD %s6 7// RUN: echo ".section .foo,\"ax\"; ret" > %t.s8// RUN: llvm-mc -filetype=obj -triple=aarch64 %t.s -o %t2.o9// RUN: ld.lld --xosegment %t.o %t2.o -o %t.so -shared10// RUN: llvm-readelf -l %t.so | FileCheck --check-prefix=DIFF --implicit-check-not=LOAD %s11 12// CHECK:      LOAD           0x000000 0x0000000000000000 0x0000000000000000 0x000245 0x000245 R   0x1000013// CHECK-NEXT: LOAD           0x000248 0x0000000000010248 0x0000000000010248 0x{{.*}} 0x{{.*}} R E 0x1000014// CHECK-NEXT: LOAD           0x00024c 0x000000000002024c 0x000000000002024c 0x{{.*}} 0x{{.*}}   E 0x1000015// CHECK-NEXT: LOAD           0x000250 0x0000000000030250 0x0000000000030250 0x000070 0x000db0 RW  0x1000016 17// CHECK:      01     .dynsym .gnu.hash .hash .dynstr18// CHECK-NEXT: 02     .text19// CHECK-NEXT: 03     .foo20// CHECK-NEXT: 04     .dynamic21 22// DIFF:      LOAD           0x000000 0x0000000000000000 0x0000000000000000 0x00020d 0x00020d R   0x1000023// DIFF-NEXT: LOAD           0x000210 0x0000000000010210 0x0000000000010210 0x00000c 0x00000c R E 0x1000024// DIFF-NEXT: LOAD           0x000220 0x0000000000020220 0x0000000000020220 0x000070 0x000de0 RW  0x1000025 26// DIFF:      01     .dynsym .gnu.hash .hash .dynstr27// DIFF-NEXT: 02     .text .foo28// DIFF-NEXT: 03     .dynamic29 30        ret31        .section .foo,"axy"32        ret33