mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
19f3868e91
This is the plugin version of pr20882. This handles the case of every common symbol being in the IR. We will need some support from gold to handle the case where some symbols are in ELF and some in the IR. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217458 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
312 B
LLVM
12 lines
312 B
LLVM
; RUN: llvm-as %s -o %t1.o
|
|
; RUN: llvm-as %p/Inputs/common.ll -o %t2.o
|
|
|
|
; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \
|
|
; RUN: --plugin-opt=emit-llvm \
|
|
; RUN: -shared %t1.o %t2.o -o %t3.o
|
|
; RUN: llvm-dis %t3.o -o - | FileCheck %s
|
|
|
|
@a = common global i8 0, align 8
|
|
|
|
; CHECK: @a = common global i16 0, align 8
|