xref: /llvm-project/lld/test/ELF/dynamic-list-glob.s (revision 1f69355802ad446d95b4f71c421dd4100eb8aa77)
1# REQUIRES: x86
2
3## Confirm --dynamic-list identifies symbols by entries, including wildcards.
4## Entries need not match a symbol.
5
6# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
7
8# RUN: echo '{ [fb]o?1*; };' > %t.list
9# RUN: ld.lld -pie --dynamic-list %t.list %t.o -o %t
10# RUN: llvm-readelf --dyn-syms %t | FileCheck %s
11
12# CHECK:      Symbol table '.dynsym' contains 4 entries:
13# CHECK:      boo1
14# CHECK-NEXT: foo1
15# CHECK-NEXT: foo11
16
17.globl _start, boo1, foo1, foo11, foo2
18_start:
19foo1:
20foo11:
21foo2:
22boo1:
23