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
46 lines
1.4 KiB
ArmAsm
46 lines
1.4 KiB
ArmAsm
// REQUIRES: arm
|
|
// RUN: llvm-mc -filetype=obj -arm-add-build-attributes -triple=armv7a-none-linux-gnueabi %s -o %t
|
|
// RUN: ld.lld --hash-style=sysv %t --shared -o %t2
|
|
// RUN: llvm-readobj --relocations %t2 | FileCheck %s
|
|
// RUN: llvm-objdump -s --triple=armv7a-none-linux-gnueabi %t2 | FileCheck --check-prefix=CHECK-EXTAB %s
|
|
|
|
// Check that the relative R_ARM_PREL31 relocation can access a PLT entry
|
|
// for when the personality routine is referenced from a shared library.
|
|
// Also check that the R_ARM_NONE no-op relocation can be used in a shared
|
|
// library.
|
|
.syntax unified
|
|
// Will produce an ARM.exidx entry with an R_ARM_NONE relocation to
|
|
// __aeabi_unwind_cpp_pr0
|
|
.section .text.func1, "ax",%progbits
|
|
.global func1
|
|
func1:
|
|
.fnstart
|
|
bx lr
|
|
.fnend
|
|
|
|
// Will produce a R_ARM_PREL31 relocation with respect to the PLT entry of
|
|
// __gxx_personality_v0
|
|
.section .text.func2, "ax",%progbits
|
|
.global func2
|
|
func2:
|
|
.fnstart
|
|
bx lr
|
|
.personality __gxx_personality_v0
|
|
.handlerdata
|
|
.long 0
|
|
.section .text.func2
|
|
.fnend
|
|
|
|
.section .text.__aeabi_unwind_cpp_pr0, "ax", %progbits
|
|
.global __aeabi_unwind_cpp_pr0
|
|
__aeabi_unwind_cpp_pr0:
|
|
bx lr
|
|
|
|
// CHECK: Relocations [
|
|
// CHECK-NEXT: Section {{.*}} .rel.plt {
|
|
// CHECK-NEXT: 0x302DC R_ARM_JUMP_SLOT __gxx_personality_v0
|
|
|
|
// CHECK-EXTAB: Contents of section .ARM.extab:
|
|
// 0x0238 + 0x1038 = 0x1270 = __gxx_personality_v0(PLT)
|
|
// CHECK-EXTAB-NEXT: 0238 38000100 b0b0b000 00000000
|