brintos

brintos / llvm-project-archived public Read only

0
0
Text · 518 B · 5f2b863 Raw
20 lines · plain
1# REQUIRES: aarch642 3# RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o4# RUN: ld.lld %t.o -o %t5# RUN: llvm-readelf -s -r %t | FileCheck %s6# RUN: ld.lld %t.o -o %t -pie7# RUN: llvm-readelf -s -r %t | FileCheck %s8# RUN: not ld.lld %t.o -o %t -shared 2>&1 | FileCheck --check-prefix=ERR %s9 10.data11# CHECK: R_AARCH64_IRELATIVE [[FOO:[0-9a-f]*]]12# ERR: relocation R_AARCH64_FUNCINIT64 cannot be used against preemptible symbol 'foo'13.8byte foo@FUNCINIT14 15.text16# CHECK: {{0*}}[[FOO]] {{.*}} foo17.globl foo18foo:19ret20