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
38 lines
1.4 KiB
ArmAsm
38 lines
1.4 KiB
ArmAsm
// REQUIRES: arm
|
|
// RUN: llvm-mc -filetype=obj -triple=armv7a-linux-gnueabi %s -o %t.o
|
|
// RUN: ld.lld -z separate-loadable-segments %t.o -o %t
|
|
// RUN: llvm-readelf -S -r --symbols %t | FileCheck %s
|
|
// RUN: llvm-objdump --triple=armv7a-linux-gnueabi -d --no-show-raw-insn %t | FileCheck --check-prefix=DISASM %s
|
|
|
|
// Test the R_ARM_GOTOFF32 relocation
|
|
|
|
// CHECK: [Nr] Name Type Address Off Size ES Flg Lk Inf Al
|
|
// CHECK-NEXT: [ 0] NULL 00000000 000000 000000 00 0 0 0
|
|
// CHECK-NEXT: [ 1] .text PROGBITS 00020000 010000 000010 00 AX 0 0 4
|
|
// CHECK-NEXT: [ 2] .got PROGBITS 00030000 020000 000000 00 WA 0 0 4
|
|
// CHECK-NEXT: [ 3] .relro_padding NOBITS 00030000 020000 000000 00 WA 0 0 1
|
|
// CHECK-NEXT: [ 4] .bss NOBITS 00030000 020000 000014 00 WA 0 0 1
|
|
|
|
// CHECK: 00030000 10 OBJECT GLOBAL DEFAULT 4 bar
|
|
// CHECK-NEXT: 0003000a 10 OBJECT GLOBAL DEFAULT 4 obj
|
|
|
|
// DISASM: <_start>:
|
|
// DISASM-NEXT: bx lr
|
|
// Offset 0 from .got = bar
|
|
// DISASM: .word 0x00000000
|
|
// Offset 10 from .got = obj
|
|
// DISASM-NEXT: .word 0x0000000a
|
|
// Offset 15 from .got = obj +5
|
|
// DISASM-NEXT: .word 0x0000000f
|
|
.syntax unified
|
|
.globl _start
|
|
_start:
|
|
bx lr
|
|
.word bar(GOTOFF)
|
|
.word obj(GOTOFF)
|
|
.word obj(GOTOFF)+5
|
|
.type bar, %object
|
|
.comm bar, 10
|
|
.type obj, %object
|
|
.comm obj, 10
|