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
42 lines
1.3 KiB
ArmAsm
42 lines
1.3 KiB
ArmAsm
# REQUIRES: x86
|
|
## Test R_X86_64_PLTOFF64 (preemptible: L - GOT + A; non-preemptible: S - GOT + A).
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
|
|
# RUN: ld.lld %t.o -shared -o %t.so
|
|
# RUN: llvm-readelf -S %t.so | FileCheck %s --check-prefix=SEC-SHARED
|
|
# RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t.so | FileCheck %s --check-prefix=SHARED
|
|
|
|
# RUN: ld.lld %t.o -o %t
|
|
# RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=SEC-PDE
|
|
# RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t | FileCheck %s --check-prefix=PDE
|
|
|
|
# SEC-SHARED: .got.plt PROGBITS 00000000000033c0 0003c0 000028
|
|
|
|
## foo@plt - .got.plt = 0x12f0 - 0x33c0 = -8400
|
|
## undefweak@plt - .got.plt = 0x1300 - 0x33c0 = -8384
|
|
# SHARED-LABEL: <.text>:
|
|
# SHARED-NEXT: movabsq $-8400, %rdx
|
|
# SHARED-NEXT: movabsq $-8384, %rdx
|
|
# SHARED-LABEL: <foo@plt>:
|
|
# SHARED-NEXT: 12f0: jmpq {{.*}}(%rip)
|
|
|
|
# SEC-PDE: .got.plt PROGBITS 0000000000202170 000170 000018
|
|
|
|
## Avoid PLT since the referenced symbol is non-preemptible.
|
|
## foo - .got.plt = 0x20116c - 0x202170 = -4100
|
|
## 0 - .got.plt = 0 - 0x202168 = -2105712
|
|
# PDE-LABEL: <.text>:
|
|
# PDE-NEXT: movabsq $-4100, %rdx
|
|
# PDE-NEXT: movabsq $-2105712, %rdx
|
|
# PDE-LABEL: <foo>:
|
|
# PDE-NEXT: 20116c: retq
|
|
|
|
movabsq $foo@PLTOFF, %rdx
|
|
movabsq $undefweak@PLTOFF, %rdx
|
|
|
|
.globl foo
|
|
foo:
|
|
ret
|
|
|
|
.weak undefweak
|