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
56 lines
1.8 KiB
ArmAsm
56 lines
1.8 KiB
ArmAsm
# REQUIRES: mips
|
|
|
|
# MIPS TLS variables that are marked as local by a version script were
|
|
# previously writing values to the GOT that caused runtime crashes. This
|
|
# was happending when linking jemalloc_tsd.c in FreeBSD libc. Check that
|
|
# we do the right thing now:
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-freebsd %s -o %t.o
|
|
# RUN: echo "{ global: foo; local: *; };" > %t.script
|
|
# RUN: echo "SECTIONS { \
|
|
# RUN: . = 0x10000; .text : { *(.text) } \
|
|
# RUN: . = 0x20000; .got : { *(.got) } \
|
|
# RUN: }" > %t.script1
|
|
# RUN: ld.lld --version-script %t.script -script %t.script1 -shared %t.o -o %t.so
|
|
# RUN: llvm-objdump --section=.got -s %t.so | FileCheck %s --check-prefix GOT
|
|
# RUN: llvm-readobj -r %t.so | FileCheck %s -check-prefix RELOCS
|
|
|
|
# GOT: Contents of section .got:
|
|
# GOT-NEXT: 20000 00000000 00000000 80000000 00000000
|
|
# GOT-NEXT: 20010 00000000 00000000 00000000 00000000
|
|
# GOT-NEXT: 20020 ffffffff ffff8000
|
|
|
|
# RELOCS: Section ({{.+}}) .rel.dyn {
|
|
# RELOCS-NEXT: 0x20018 R_MIPS_TLS_DTPMOD64/R_MIPS_NONE/R_MIPS_NONE
|
|
# RELOCS-NEXT: }
|
|
|
|
# Test case generated using:
|
|
# clang -mcpu=mips4 -target mips64-unknown-freebsd12.0 \
|
|
# -fpic -O -G0 -EB -mabi=n64 -msoft-float -std=gnu99 -S %s -o %t.s
|
|
# from the following source:
|
|
#
|
|
# _Thread_local int x;
|
|
# int foo() { return x; }
|
|
#
|
|
.text
|
|
.globl foo
|
|
.p2align 3
|
|
.type foo,@function
|
|
.ent foo
|
|
foo:
|
|
lui $1, %hi(%neg(%gp_rel(foo)))
|
|
daddu $1, $1, $25
|
|
daddiu $gp, $1, %lo(%neg(%gp_rel(foo)))
|
|
ld $25, %call16(__tls_get_addr)($gp)
|
|
jalr $25
|
|
daddiu $4, $gp, %tlsgd(x)
|
|
.end foo
|
|
|
|
.type x,@object
|
|
.section .tbss,"awT",@nobits
|
|
.globl x
|
|
.p2align 2
|
|
x:
|
|
.4byte 0
|
|
.size x, 4
|