32 lines · plain
1// REQUIRES: x862// RUN: llvm-mc %p/Inputs/versiondef.s -o %t.o -filetype=obj -triple=x86_64-pc-linux3// RUN: rm -f %t.a4// RUN: llvm-ar -r %t.a %t.o5// RUN: llvm-mc %s -o %t2.o -filetype=obj -triple=x86_64-pc-linux6// RUN: ld.lld %t2.o %t.a --shared --exclude-libs ALL -o %t.so7// RUN: llvm-readobj --symbols %t.so | FileCheck %s8// RUN: llvm-readobj --dyn-syms %t.so | FileCheck -check-prefix CHECK-DYN %s9// RUN: not ld.lld %t2.o %t.a --shared -o /dev/null 2>&1 | FileCheck -check-prefix=CHECK-ERR %s10 11// Test that we do not give an error message for undefined versions when the12// symbol is not exported to the dynamic symbol table.13 14// CHECK: Name: func15// CHECK-NEXT: Value:16// CHECK-NEXT: Size:17// CHECK-NEXT: Binding: Local (0x0)18 19// CHECK-DYN-NOT: func20 21// CHECK-ERR: symbol func@@VER2 has undefined version VER222// CHECK-ERR-NEXT: symbol func@VER has undefined version VER23 24 .text25 .globl _start26 .globl func27_start:28 ret29 30 .data31 .quad func32