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
54 lines
2.1 KiB
ArmAsm
54 lines
2.1 KiB
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -filetype=obj %s -o %t.o
|
|
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -filetype=obj %S/Inputs/archive1.s -o %t.a1.o
|
|
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -filetype=obj %S/Inputs/archive2.s -o %t.a2.o
|
|
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -filetype=obj %S/Inputs/archive3.s -o %t.a3.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.a1.o %t.a2.o %t.a3.o %t.hello.o
|
|
# RUN: rm -f %t.imports
|
|
# RUN: not wasm-ld %t.a %t.o -o %t.wasm 2>&1 | FileCheck -check-prefix=CHECK-UNDEFINED %s
|
|
|
|
# CHECK-UNDEFINED: undefined symbol: missing_func
|
|
|
|
# RUN: echo 'missing_func' > %t.imports
|
|
# RUN: wasm-ld -r %t.a %t.o -o %t.wasm
|
|
|
|
# RUN: llvm-nm -a %t.wasm | FileCheck %s
|
|
|
|
.functype foo () -> (i32)
|
|
.functype missing_func () -> ()
|
|
|
|
.globl _start
|
|
_start:
|
|
.functype _start () -> ()
|
|
call foo
|
|
drop
|
|
call missing_func
|
|
end_function
|
|
|
|
# Verify that mutually dependant object files in an archive is handled
|
|
# correctly. Since we're using llvm-nm, we must link with --relocatable.
|
|
#
|
|
# TODO(ncw): Update LLD so that the symbol table is written out for
|
|
# non-relocatable output (with an option to strip it)
|
|
|
|
# CHECK: 00000016 T _start
|
|
# CHECK-NEXT: 0000000a T archive2_symbol
|
|
# CHECK-NEXT: 00000001 T bar
|
|
# CHECK-NEXT: 0000000d T foo
|
|
# CHECK-NEXT: U missing_func
|
|
|
|
# Verify that symbols from unused objects don't appear in the symbol table
|
|
# CHECK-NOT: hello
|
|
|
|
# Specifying the same archive twice is allowed.
|
|
# RUN: wasm-ld %t.a %t.a %t.o -o %t.wasm
|
|
|
|
# Verfiy errors include library name
|
|
# RUN: not wasm-ld -u archive2_symbol -u archive3_symbol %t.a %t.o -o %t.wasm 2>&1 | FileCheck -check-prefix=CHECK-DUP %s
|
|
# And that this also works with --whole-archive
|
|
# RUN: not wasm-ld -u archive2_symbol -u archive3_symbol --whole-archive %t.a %t.o -o %t.wasm 2>&1 | FileCheck -check-prefix=CHECK-DUP %s
|
|
# CHECK-DUP: error: duplicate symbol: bar
|
|
# CHECK-DUP: >>> defined in {{.*}}.a({{.*}}.a2.o)
|
|
# CHECK-DUP: >>> defined in {{.*}}.a({{.*}}.a3.o)
|