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-07-03 01:48:23 +08:00
|
|
|
# RUN: ld.lld --fatal-warnings --shared --version-script %t.script %t.o %t2.so -o /dev/null
|
2016-12-10 06:40:49 +08:00
|
|
|
|
|
|
|
.global bar
|
|
|
|
bar:
|
|
|
|
nop
|