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
61 lines
1.5 KiB
ArmAsm
61 lines
1.5 KiB
ArmAsm
# REQUIRES: x86
|
|
## Test the GC behavior when the PROVIDE symbol is defined by a relocatable file.
|
|
|
|
# RUN: rm -rf %t && split-file %s %t && cd %t
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 a.s -o a.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 b.s -o b.o
|
|
# RUN: llvm-as c.ll -o c.bc
|
|
# RUN: ld.lld -T a.t --gc-sections a.o b.o -o a
|
|
# RUN: llvm-readelf -s a | FileCheck %s
|
|
|
|
# RUN: ld.lld -T a.t -shared a.o b.o c.bc -o a.so
|
|
# RUN: llvm-readelf -s -r a.so | FileCheck %s --check-prefix=DSO
|
|
|
|
# CHECK: 1: {{.*}} 0 NOTYPE GLOBAL DEFAULT 1 _start
|
|
# CHECK-NEXT:2: {{.*}} 0 NOTYPE WEAK DEFAULT 2 f3
|
|
# CHECK-NOT: {{.}}
|
|
|
|
# DSO: .rela.plt
|
|
# DSO-NOT: f5
|
|
# DSO: Symbol table '.dynsym'
|
|
# DSO-NOT: f5
|
|
# DSO: Symbol table '.symtab'
|
|
# DSO: {{.*}} 0 NOTYPE LOCAL HIDDEN [[#]] f5
|
|
|
|
#--- a.s
|
|
.global _start, f1, f2, bar
|
|
.weak f3
|
|
_start:
|
|
call f3
|
|
|
|
.section .text.f1,"ax"; f1:
|
|
.section .text.f2,"ax"; f2: # referenced by another relocatable file
|
|
.section .text.f3,"ax"; f3: # live
|
|
.section .text.bar,"ax"; bar:
|
|
|
|
.comm comm,4,4
|
|
|
|
#--- b.s
|
|
call f2
|
|
|
|
#--- c.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"
|
|
|
|
declare void @f5()
|
|
|
|
define void @f3() {
|
|
call void @f5()
|
|
ret void
|
|
}
|
|
|
|
#--- a.t
|
|
SECTIONS {
|
|
. = . + SIZEOF_HEADERS;
|
|
PROVIDE(f1 = bar+1);
|
|
PROVIDE(f2 = bar+2);
|
|
PROVIDE(f3 = bar+3);
|
|
PROVIDE(f4 = comm+4);
|
|
PROVIDE_HIDDEN(f5 = bar+5);
|
|
}
|