mirror of
https://github.com/AxioDL/lld.git
synced 2026-03-30 11:44:17 -07:00
470648e5c6
We first decide that the symbol is global, than that it should have version foo. Since it was already not the default version, we were producing a bogus warning. git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@289284 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
384 B
ArmAsm
13 lines
384 B
ArmAsm
# 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
|
|
# RUN: ld.lld --fatal-warnings --shared --version-script %t.script %t.o %t2.so
|
|
|
|
.global bar
|
|
bar:
|
|
nop
|