26 lines · plain
1// REQUIRES: x862 3// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o4// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux \5// RUN: %p/Inputs/start-lib-comdat.s -o %t2.o6// RUN: ld.lld -shared -o %t3 %t1.o --start-lib %t2.o --end-lib7// RUN: llvm-readobj --dyn-syms %t3 | FileCheck %s8// RUN: ld.lld -shared -o %t3 --start-lib %t2.o --end-lib %t1.o9// RUN: llvm-readobj --dyn-syms %t3 | FileCheck %s10 11// CHECK: Name: zed12// CHECK-NEXT: Value:13// CHECK-NEXT: Size:14// CHECK-NEXT: Binding: Global15// CHECK-NEXT: Type:16// CHECK-NEXT: Other:17// CHECK-NEXT: Section: .sec18 19 call bar@plt20// The other file also has a section in the zed comdat, but it defines the21// symbol zed. That means that we will have a lazy symbol zed, but when adding22// the actual file zed will be undefined.23 .section .sec,"aG",@progbits,zed,comdat24.global zed25zed:26