19 lines · plain
1# REQUIRES: aarch642 3# RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o4# RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck --check-prefix=ERR %s5 6.rodata7# ERR: error: relocation R_AARCH64_FUNCINIT64 cannot be used against local symbol8.8byte func@FUNCINIT9 10.data11# ERR: error: relocation R_AARCH64_FUNCINIT64 cannot be used against ifunc symbol 'ifunc'12.8byte ifunc@FUNCINIT13 14.text15func:16.type ifunc, @gnu_indirect_function17ifunc:18ret19