brintos

brintos / llvm-project-archived public Read only

0
0
Text · 567 B · 6d3e8da Raw
19 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t1.o %S/Inputs/shlib-undefined-ref.s4# RUN: ld.lld -shared -o %t.so %t1.o5 6# RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t2.o %s7# RUN: echo "{ local: *; };" > %t.script8# RUN: not ld.lld -version-script %t.script %t2.o %t.so -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR9 10# ERR: error: non-exported symbol 'should_not_be_exported' in '{{.*}}tmp2.o' is referenced by DSO '{{.*}}tmp.so'11 12.globl should_not_be_exported13should_not_be_exported:14	ret15 16.globl _start17_start:18	ret19