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
72 lines
2.1 KiB
ArmAsm
72 lines
2.1 KiB
ArmAsm
# Regression test based on https://github.com/llvm/llvm-project/issues/54386
|
|
# Test that that linker synthetic functions such as __wasm_tls_init and
|
|
# __wasm_apply_global_tls_relocs can be created successfully in programs
|
|
# that don't reference __tls_base or __wasm_tls_init. These function both
|
|
# reference __tls_base which need to be marks as alive if they are generated.
|
|
|
|
# This is very basic TLS-using program that doesn't reference any of the
|
|
# linker-generated symbols.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
|
|
# RUN: wasm-ld -no-gc-sections --shared-memory -o %t.wasm %t.o
|
|
# RUN: obj2yaml %t.wasm | FileCheck %s
|
|
# RUN: llvm-objdump -d --no-show-raw-insn --no-leading-addr %t.wasm | FileCheck %s --check-prefixes DIS
|
|
|
|
.globl _start
|
|
_start:
|
|
.functype _start () -> (i32)
|
|
global.get tls_sym@GOT@TLS
|
|
end_function
|
|
|
|
.section .tdata.tls_sym,"",@
|
|
.globl tls_sym
|
|
.p2align 2
|
|
tls_sym:
|
|
.int32 1
|
|
.size tls_sym, 4
|
|
|
|
.section .custom_section.target_features,"",@
|
|
.int8 2
|
|
.int8 43
|
|
.int8 7
|
|
.ascii "atomics"
|
|
.int8 43
|
|
.int8 11
|
|
.ascii "bulk-memory"
|
|
|
|
# CHECK: - Type: CUSTOM
|
|
# CHECK-NEXT: Name: name
|
|
# CHECK-NEXT: FunctionNames:
|
|
# CHECK-NEXT: - Index: 0
|
|
# CHECK-NEXT: Name: __wasm_call_ctors
|
|
# CHECK-NEXT: - Index: 1
|
|
# CHECK-NEXT: Name: __wasm_init_tls
|
|
# CHECK-NEXT: - Index: 2
|
|
# CHECK-NEXT: Name: __wasm_init_memory
|
|
# CHECK-NEXT: - Index: 3
|
|
# CHECK-NEXT: Name: __wasm_apply_global_tls_relocs
|
|
# CHECK-NEXT: - Index: 4
|
|
# CHECK-NEXT: Name: _start
|
|
|
|
# DIS: <__wasm_init_tls>:
|
|
# DIS: local.get 0
|
|
# DIS-NEXT: global.set 1
|
|
# DIS-NEXT: local.get 0
|
|
# DIS-NEXT: i32.const 0
|
|
# DIS-NEXT: i32.const 4
|
|
# DIS-NEXT: memory.init 0, 0
|
|
# DIS-NEXT: call 3
|
|
# DIS-NEXT: end
|
|
|
|
# DIS: <__wasm_apply_global_tls_relocs>:
|
|
# DIS: global.get 1
|
|
# DIS-NEXT: i32.const 0
|
|
# DIS-NEXT: i32.add
|
|
# DIS-NEXT: global.set 4
|
|
# DIS-NEXT: end
|
|
|
|
# DIS: <_start>:
|
|
# DIS: global.get 4
|
|
# DIS-NEXT: end
|
|
|