Mercurial > hg > CbC > CbC_llvm
view lld/test/ELF/start-lib-comdat.s @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 2e18cbf3894f |
children |
line wrap: on
line source
// REQUIRES: x86 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux \ // RUN: %p/Inputs/start-lib-comdat.s -o %t2.o // RUN: ld.lld -shared -o %t3 %t1.o --start-lib %t2.o --end-lib // RUN: llvm-readobj --dyn-syms %t3 | FileCheck %s // RUN: ld.lld -shared -o %t3 --start-lib %t2.o --end-lib %t1.o // RUN: llvm-readobj --dyn-syms %t3 | FileCheck %s // CHECK: Name: zed // CHECK-NEXT: Value: // CHECK-NEXT: Size: // CHECK-NEXT: Binding: Global // CHECK-NEXT: Type: // CHECK-NEXT: Other: // CHECK-NEXT: Section: .sec call bar@plt // The other file also has a section in the zed comdat, but it defines the // symbol zed. That means that we will have a lazy symbol zed, but when adding // the actual file zed will be undefined. .section .sec,"aG",@progbits,zed,comdat .global zed zed: