Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

80 lines
2.1 KiB
ArmAsm

## Based on lld/test/ELF/shared-lazy.s
# RUN: rm -rf %t && split-file %s %t && cd %t
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-emscripten a.s -o a.o
# RUN: wasm-ld a.o -shared -o a.so
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-emscripten b.s -o b.o
# RUN: wasm-ld b.o -shared -o b.so
# RUN: llvm-ar rc a.a a.o
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-emscripten ref.s -o ref.o
# RUN: wasm-ld a.a b.so ref.o -shared -o 1.so
# RUN: obj2yaml 1.so | FileCheck %s
# RUN: wasm-ld a.so a.a ref.o -shared -o 1.so
# RUN: obj2yaml 1.so | FileCheck %s
## The definitions from a.so are used and we don't extract a member from the
## archive.
# CHECK: - Type: IMPORT
# CHECK: - Module: GOT.mem
# CHECK-NEXT: Field: x1
# CHECK-NEXT: Kind: GLOBAL
# CHECK-NEXT: GlobalType: I32
# CHECK-NEXT: GlobalMutable: true
# CHECK-NEXT: - Module: GOT.mem
# CHECK-NEXT: Field: x2
# CHECK-NEXT: Kind: GLOBAL
# CHECK-NEXT: GlobalType: I32
# CHECK-NEXT: GlobalMutable: true
## The extracted x1 is defined as STB_GLOBAL.
# RUN: wasm-ld ref.o a.a b.so -o 2.so -shared
# RUN: obj2yaml 2.so | FileCheck %s --check-prefix=CHECK2
# RUN: wasm-ld a.a ref.o b.so -o 2.so -shared
# RUN: obj2yaml 2.so | FileCheck %s --check-prefix=CHECK2
# CHECK2: - Type: EXPORT
# CHECK2-NEXT: Exports:
# CHECK2-NEXT: - Name: __wasm_call_ctors
# CHECK2-NEXT: Kind: FUNCTION
# CHECK2-NEXT: Index:
# CHECK2-NEXT: - Name: x1
# CHECK2-NEXT: Kind: GLOBAL
# CHECK2-NEXT: Index:
# CHECK2-NEXT: - Name: x2
# CHECK2-NEXT: Kind: GLOBAL
#--- a.s
.section .data.x1,"",@
.global x1
x1:
.byte 0
.size x1, 1
.section .data.x2,"",@
.weak x2
x2:
.byte 0
.size x2, 1
#--- b.s
.section .data.x1,"",@
.globl x1
x1:
.byte 0
.size x1, 1
.section .data.x2,"",@
.globl x2
x2:
.byte 0
.size x2, 1
#--- ref.s
.globl x1
.globl x2
.globl d
.section .data.d,"",@
d:
.int x1
.int x2
.size d, 8