17 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/znotext-plt-relocations-protected.s -o %t2.o4# RUN: ld.lld %t2.o -o %t2.so -shared5# RUN: not ld.lld -z notext %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s6 7# CHECK: error: cannot preempt symbol: foo8# CHECK-NEXT: >>> defined in {{.*}}2.so9# CHECK-NEXT: >>> referenced by test.cpp10# CHECK-NEXT: >>> {{.*}}.o:(.text+0x0)11 12.file "test.cpp"13 14.global _start15_start:16 .long foo - .17