brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 8de3646 Raw
29 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3 4# RUN: echo 'foo { foo*; }; bar { *; };' > %t.ver5# RUN: ld.lld --version-script %t.ver %t.o -shared -o %t.so --fatal-warnings6# RUN: llvm-readelf --dyn-syms %t.so | FileCheck --check-prefix=FOO %s7 8# RUN: echo 'foo { foo*; }; bar { f*; };' > %t.ver9# RUN: ld.lld --version-script %t.ver %t.o -shared -o %t.so --fatal-warnings10# RUN: llvm-readelf --dyn-syms %t.so | FileCheck --check-prefix=BAR %s11 12# RUN: echo 'bar1 { *; }; bar2 { *; };' > %t2.ver13# RUN: ld.lld --version-script %t2.ver %t.o -shared -o %t2.so 2>&1 | \14# RUN:   FileCheck --check-prefix=DUPWARN %s15# RUN: llvm-readelf --dyn-syms %t2.so | FileCheck --check-prefix=BAR2 %s16 17## If both a non-* glob and a * match, non-* wins.18## This is GNU linkers' behavior. We don't feel strongly this should be supported.19# FOO: GLOBAL DEFAULT 7 foo@@foo20 21# BAR: GLOBAL DEFAULT 7 foo@@bar22 23## When there are multiple * patterns, the last wins.24# BAR2: GLOBAL DEFAULT 7 foo@@bar225# DUPWARN: warning: wildcard pattern '*' is used for multiple version definitions in version script26 27.globl foo28foo:29