]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/shlib-undefined-local.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / shlib-undefined-local.s
1 # REQUIRES: x86
2
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t1.o %S/Inputs/shlib-undefined-ref.s
4 # RUN: ld.lld -shared -o %t.so %t1.o
5
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t2.o %s
7 # RUN: echo "{ local: *; };" > %t.script
8 # RUN: ld.lld -version-script %t.script -o %t %t2.o %t.so
9 # RUN: llvm-nm -g %t | FileCheck -allow-empty %s
10
11 # CHECK-NOT: should_not_be_exported
12
13 .globl should_not_be_exported
14 should_not_be_exported:
15         ret
16
17 .globl _start
18 _start:
19         ret