2016-12-10 06:40:49 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t2.o
|
|
|
|
# RUN: ld.lld -shared %t2.o -soname shared -o %t2.so
|
|
|
|
|
|
|
|
# RUN: echo "foo { global: bar; local: *; };" > %t.script
|
2018-01-19 22:15:13 +08:00
|
|
|
# RUN: ld.lld --fatal-warnings --shared --version-script %t.script %t.o %t2.so -o %t.out
|
2016-12-10 06:40:49 +08:00
|
|
|
|
|
|
|
.global bar
|
|
|
|
bar:
|
|
|
|
nop
|