2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: llvm-readobj --dyn-symbols %p/Inputs/version-undef-sym.so | FileCheck %s
6 // Inputs/version-undef-sym.so consists of the assembly file
16 // linked into a shared library with the version script
23 // Assuming we can reproduce the desired property (a few undefined symbols
24 // before bar) we should create it with lld itself once it supports that.
27 // Show that the input .so has undefined symbols before bar. That is what would
28 // get our version parsing out of sync.
30 // CHECK: Section: Undefined
31 // CHECK: Section: Undefined
32 // CHECK: Section: Undefined
33 // CHECK: Section: Undefined
34 // CHECK: Section: Undefined
37 // But now we can successfully find bar.
38 // RUN: ld.lld %t.o %p/Inputs/version-undef-sym.so -o /dev/null