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
38 lines
1.3 KiB
ArmAsm
38 lines
1.3 KiB
ArmAsm
# REQUIRES: x86
|
|
# RUN: echo 'v1 { f; }; v2 { g; };' > %t.ver
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
|
|
# RUN: ld.lld -shared --version-script %t.ver %t.o -o %t.so
|
|
|
|
# RUN: ld.lld --version-script %t.ver %t.o %t.so -o /dev/null -y f@v1 | \
|
|
# RUN: FileCheck --check-prefix=TRACE %s --implicit-check-not=f@v1
|
|
|
|
## TRACE: {{.*}}.o: definition of f@v1
|
|
## TRACE-NEXT: {{.*}}.so: shared definition of f@v1
|
|
|
|
# RUN: echo '.symver f,f@v1; .symver g,g@v2; call f; call g' | \
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 - -o %t1.o
|
|
# RUN: ld.lld -shared %t1.o %t.so -o %t1.so
|
|
|
|
## Test that we can parse SHT_GNU_verneed to know that the undefined symbols in
|
|
## %t1.so are called 'f@v1' and 'g@v2', which can be satisfied by the executable.
|
|
## We will thus export the symbols.
|
|
# RUN: ld.lld -pie %t.o %t1.so -o %t
|
|
# RUN: llvm-nm -D %t | FileCheck --check-prefix=NM %s
|
|
|
|
# NM: T f
|
|
# NM: T g
|
|
|
|
## The default is --no-allow-shlib-undefined.
|
|
## Don't error because undefined symbols in %t1.so are satisfied by %t.so
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t2.o
|
|
# RUN: ld.lld %t2.o %t1.so %t.so -y f@v1 -o /dev/null | FileCheck %s
|
|
|
|
# CHECK: {{.*}}1.so: reference to f@v1
|
|
# CHECK-NEXT: {{.*}}.so: shared definition of f@v1
|
|
|
|
.globl f_v1, g_v2
|
|
.symver f_v1,f@v1
|
|
.symver g_v2,g@v2
|
|
f_v1:
|
|
g_v2:
|