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
60 lines
1.6 KiB
ArmAsm
60 lines
1.6 KiB
ArmAsm
# REQUIRES: systemz
|
|
# RUN: llvm-mc -filetype=obj -triple=s390x-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld -shared %t.o -soname=t.so -o %t.so
|
|
|
|
# RUN: llvm-readelf -S -s -x .data -x .data1 %t.so | FileCheck %s
|
|
|
|
# CHECK: Section Headers:
|
|
# CHECK: .plt PROGBITS 0000000000001290
|
|
# CHECK: .got PROGBITS 0000000000002390
|
|
|
|
# CHECK: Symbol table '.symtab'
|
|
# CHECK: 0000000000001288 {{.*}} bar
|
|
# CHECK: 000000000000128a {{.*}} baz
|
|
|
|
## .data holds relocations against non-preemptible symbols (link-time
|
|
## constants): GOTOFF (bar) and PLTOFF (baz). For PLTOFF (baz) the scan
|
|
## rewrites R_PLT_GOTREL → R_GOTREL via fromPlt so the result is
|
|
## baz - .got, not the offset of a PLT entry.
|
|
## GOTOFF (bar) = bar - .got = 0x1288 - 0x2390 = 0xffffeef8
|
|
## PLTOFF (baz) = baz - .got = 0x128a - 0x2390 = 0xffffeefa
|
|
# CHECK: Hex dump of section '.data':
|
|
# CHECK-NEXT: eef8eefa ffffeef8 ffffeefa ffffffff
|
|
# CHECK-NEXT: ffffeef8 ffffffff ffffeefa
|
|
|
|
## .data1 holds relocations against the preemptible foo, which uses the
|
|
## first (and only) PLT entry at .plt + 32.
|
|
## PLTOFF (foo) = (.plt + 32) - .got = 0x12b0 - 0x2390 = 0xffffef20
|
|
# CHECK: Hex dump of section '.data1':
|
|
# CHECK-NEXT: ef20ffff ef20ffff ffffffff ef20
|
|
|
|
bar:
|
|
br %r14
|
|
|
|
.hidden baz
|
|
.globl baz
|
|
baz:
|
|
br %r14
|
|
|
|
.data
|
|
.reloc ., R_390_GOTOFF16, bar
|
|
.space 2
|
|
.reloc ., R_390_PLTOFF16, baz
|
|
.space 2
|
|
.reloc ., R_390_GOTOFF, bar
|
|
.space 4
|
|
.reloc ., R_390_PLTOFF32, baz
|
|
.space 4
|
|
.reloc ., R_390_GOTOFF64, bar
|
|
.space 8
|
|
.reloc ., R_390_PLTOFF64, baz
|
|
.space 8
|
|
|
|
.section .data1,"aw"
|
|
.reloc ., R_390_PLTOFF16, foo
|
|
.space 2
|
|
.reloc ., R_390_PLTOFF32, foo
|
|
.space 4
|
|
.reloc ., R_390_PLTOFF64, foo
|
|
.space 8
|