brintos

brintos / llvm-project-archived public Read only

0
0
Text · 497 B · 22f0d99 Raw
17 lines · plain
1# REQUIRES: x862## When a common symbol is merged with a shared symbol, pick the larger st_size.3 4# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o5# RUN: echo '.globl com; .comm com, 16' | llvm-mc -filetype=obj -triple=x86_64 - -o %t1.o6# RUN: ld.lld -shared %t1.o -o %t1.so7 8# RUN: ld.lld %t.o %t1.so -o %t9# RUN: llvm-readelf -s %t | FileCheck %s10# RUN: ld.lld %t1.so %t.o -o %t11# RUN: llvm-readelf -s %t | FileCheck %s12 13# CHECK: 16 OBJECT GLOBAL DEFAULT [[#]] com14 15.globl com16.comm com,117