blob: c53c5bf0ef7dde210b691a2e6769735f5295c5ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# REQUIRES: x86
## When a common symbol is merged with a shared symbol, pick the larger st_size.
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
# RUN: echo '.globl com; .comm com, 16' | llvm-mc -filetype=obj -triple=x86_64 - -o %t1.o
# RUN: ld.lld -shared %t1.o -o %t1.so
# RUN: ld.lld %t.o %t1.so -o %t
# RUN: llvm-readelf -s %t | FileCheck %s
# RUN: ld.lld %t1.so %t.o -o %t
# RUN: llvm-readelf -s %t | FileCheck %s
# CHECK: 16 OBJECT GLOBAL DEFAULT 7 com
.globl com
.comm com,1
|