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
27 lines
920 B
ArmAsm
27 lines
920 B
ArmAsm
// REQUIRES: x86
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
// RUN: ld.lld %t.o -shared -o %t.so
|
|
// RUN: llvm-readelf -S %t.so | FileCheck %s -check-prefix=SECTION
|
|
// RUN: llvm-objdump --no-print-imm-hex -d %t.so | FileCheck %s
|
|
|
|
// SECTION: .dynamic DYNAMIC 0000000000002290
|
|
// SECTION: .got.plt PROGBITS 0000000000003300 000300 000018
|
|
|
|
// The assembly is generated by
|
|
// gcc -O2 -S -mcmodel=medium -fPIC a.c
|
|
// This computes the pc-relative address (runtime address) of _DYNAMIC.
|
|
//
|
|
// extern long _DYNAMIC[] __attribute__((visibility("hidden")));
|
|
// long* dynamic() { return _DYNAMIC; }
|
|
|
|
// 0x3300 (.got.plt) - 0x127b = 8325
|
|
// 0x2290 (_DYNAMIC) - 0x3300 (.got.plt) = -4208
|
|
// CHECK: 1274: {{.*}} leaq 8325(%rip), %rdx
|
|
// CHECK-NEXT: 127b: {{.*}} movabsq $-4208, %rax
|
|
.global dynamic
|
|
dynamic:
|
|
leaq _GLOBAL_OFFSET_TABLE_(%rip), %rdx
|
|
movabsq $_DYNAMIC@GOTOFF, %rax
|
|
addq %rdx, %rax
|
|
ret
|