CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
49 lines
1.5 KiB
LLVM
49 lines
1.5 KiB
LLVM
; REQUIRES: x86
|
|
|
|
;; Test weak symbols are supported in LTO. The first definition should be
|
|
;; used regardless of whether it is from a bitcode file or native object.
|
|
|
|
; RUN: split-file %s %t
|
|
|
|
; RUN: llvm-as %t/size1.ll -o %t-size1.bc
|
|
; RUN: llvm-as %t/size2.ll -o %t-size2.bc
|
|
; RUN: llc %t/size4.ll -o %t-size4.o -filetype=obj
|
|
|
|
; RUN: ld.lld %t-size1.bc %t-size2.bc -o %t.so -shared
|
|
; RUN: llvm-readobj --symbols %t.so | FileCheck %s -DSIZE=1
|
|
|
|
; RUN: ld.lld %t-size2.bc %t-size1.bc -o %t2.so -shared
|
|
; RUN: llvm-readobj --symbols %t2.so | FileCheck %s -DSIZE=2
|
|
|
|
; RUN: ld.lld %t-size1.bc %t-size4.o -o %t3.so -shared
|
|
; RUN: llvm-readobj --symbols %t3.so | FileCheck %s -DSIZE=1
|
|
|
|
; RUN: ld.lld %t-size4.o %t-size1.bc -o %t4.so -shared
|
|
; RUN: llvm-readobj --symbols %t4.so | FileCheck %s -DSIZE=4
|
|
|
|
; CHECK: Name: a
|
|
; CHECK-NEXT: Value:
|
|
; CHECK-NEXT: Size: [[SIZE]]
|
|
; CHECK-NEXT: Binding: Weak
|
|
; CHECK-NEXT: Type: Object
|
|
; CHECK-NEXT: Other: 0
|
|
; CHECK-NEXT: Section: .data
|
|
|
|
;--- size1.ll
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
@a = weak global i8 1
|
|
|
|
;--- size2.ll
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
@a = weak global i16 1
|
|
|
|
;--- size4.ll
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
@a = weak global i32 1
|