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
47 lines
1.5 KiB
ArmAsm
47 lines
1.5 KiB
ArmAsm
# REQUIRES: hexagon
|
|
# RUN: llvm-mc -filetype=obj -defsym GDPLT=1 -triple=hexagon-unknown-elf %s -o %t.o
|
|
# RUN: llvm-mc -filetype=obj -triple=hexagon-unknown-elf %s -o %t1.o
|
|
# RUN: ld.lld -shared %t.o -o %t.so
|
|
# RUN: ld.lld -shared %t1.o -o %t1.so
|
|
# RUN: llvm-objdump -d --no-show-raw-insn --print-imm-hex %t.so | \
|
|
# RUN: FileCheck --check-prefix=CHECK_GDPLT %s
|
|
# RUN: llvm-objdump -d --no-show-raw-insn --print-imm-hex %t1.so | FileCheck %s
|
|
# RUN: llvm-readobj -r %t.so | FileCheck -check-prefix=RELA_GDPLT %s
|
|
|
|
## Make sure __tls_get_addr is not present unless there is a GDPLT relocation.
|
|
# RUN: llvm-readobj -r %t1.so | FileCheck -check-prefix=RELA \
|
|
# RUN: --implicit-check-not="__tls_get_addr" %s
|
|
|
|
.globl _start
|
|
.type _start, @function
|
|
|
|
_start:
|
|
.ifdef GDPLT
|
|
call x@gdplt
|
|
# CHECK_GDPLT: 101e0: { call 0x10210 <__tls_get_addr@plt> }
|
|
.else
|
|
call x
|
|
# CHECK: 101b8: { call 0x101e0 <x@plt> }
|
|
.endif
|
|
|
|
# CHECK_GDPLT: 10210: { immext(#0x20040)
|
|
# CHECK_GDPLT-NEXT: 10214: r14 = add(pc,##0x20078) }
|
|
# CHECK_GDPLT-NEXT: 10218: { r28 = memw(r14+#0x0) }
|
|
# CHECK_GDPLT-NEXT: 1021c: { jumpr r28 }
|
|
|
|
|
|
## Looking at the above check, 0x10210+0x20078 must equal the entry for
|
|
## __tls_get_addr, 0x30288
|
|
|
|
# RELA_GDPLT: Relocations [
|
|
# RELA_GDPLT-NEXT: Section (5) .rela.plt {
|
|
# RELA_GDPLT-NEXT: 0x30288 R_HEX_JMP_SLOT __tls_get_addr 0x0
|
|
# RELA_GDPLT-NEXT: }
|
|
# RELA_GDPLT-NEXT:]
|
|
|
|
# RELA: Relocations [
|
|
# RELA-NEXT: Section (5) .rela.plt {
|
|
# RELA-NEXT: 0x30258 R_HEX_JMP_SLOT x 0x0
|
|
# RELA-NEXT: }
|
|
# RELA-NEXT:]
|