blob: c0fc398cb85aa73e2e5285153fe1cc5886c5ea72 [file]
# REQUIRES: aarch64
# RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o
# RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck --check-prefix=ERR %s
.rodata
# ERR: error: relocation R_AARCH64_FUNCINIT64 cannot be used against local symbol
.8byte %funcinit(func)
.data
# ERR: error: relocation R_AARCH64_FUNCINIT64 cannot be used against ifunc symbol 'ifunc'
.8byte %funcinit(ifunc)
.text
func:
.type ifunc, @gnu_indirect_function
ifunc:
ret