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
44 lines
1.2 KiB
ArmAsm
44 lines
1.2 KiB
ArmAsm
## Test that weak undefined symbols do not fetch members from archive files.
|
|
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t.o
|
|
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o
|
|
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/hello.s -o %t.hello.o
|
|
# RUN: rm -f %t.a
|
|
# RUN: llvm-ar rcs %t.a %t.ret32.o %t.hello.o
|
|
|
|
# RUN: wasm-ld %t.o %t.a -o %t.wasm
|
|
# RUN: obj2yaml %t.wasm | FileCheck %s
|
|
|
|
## Also test with the library symbols being read first
|
|
# RUN: wasm-ld %t.a %t.o -o %t2.wasm
|
|
# RUN: obj2yaml %t2.wasm | FileCheck %s
|
|
|
|
# RUN: wasm-ld -u hello_str %t.o %t.a -o %t2.wasm
|
|
# RUN: obj2yaml %t2.wasm | FileCheck %s -check-prefix=CHECK-DATA
|
|
|
|
# Weak external function symbol
|
|
.weak ret32
|
|
.functype ret32 () -> (i32)
|
|
|
|
# Weak external data symbol
|
|
.weak hello_str
|
|
|
|
.globl _start
|
|
_start:
|
|
.functype _start () -> ()
|
|
block
|
|
i32.const hello_str
|
|
i32.eqz
|
|
br_if 0
|
|
call ret32
|
|
drop
|
|
end_block
|
|
end_function
|
|
|
|
# Ensure we have no data section. If we do, would mean that hello_str was
|
|
# pulled out of the library.
|
|
# CHECK-NOT: Type: DATA
|
|
# CHECK-DATA: Type: DATA
|
|
|
|
# CHECK: Name: 'undefined_weak:ret32'
|
|
# CHECK-NOT: Name: ret32
|