| 1 |
; Test the case when the preferred (larger / more aligned) version of a common |
| 2 |
; symbol is located in a module that's not included in the link. |
| 3 |
|
| 4 |
; RUN: llvm-as %s -o %t1.o |
| 5 |
; RUN: llvm-as %p/Inputs/start-lib-common.ll -o %t2.o |
| 6 |
|
| 7 |
; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ |
| 8 |
; RUN: --plugin-opt=emit-llvm \ |
| 9 |
; RUN: -shared %t1.o --start-lib %t2.o --end-lib -o %t3.o |
| 10 |
; RUN: llvm-dis %t3.o -o - | FileCheck %s |
| 11 |
|
| 12 |
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 13 |
target triple = "x86_64-unknown-linux-gnu" |
| 14 |
|
| 15 |
@x = common global i32 0, align 4 |
| 16 |
|
| 17 |
; v1.12 gold honors --start-lib/--end-lib, drops %t2.o and ends up |
| 18 |
; with (i32 align 4) symbol. |
| 19 |
; CHECK: @x = common global i32 0, align 4 |