Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

66 lines
1.8 KiB
Plaintext

// Check that 'llvm-readobj --dyn-relocations' shows dynamic relocations
// if they have REL record format.
// dyn-rel.so.elf-mips
// % cat test.s
// .globl __start
// __start:
// nop
//
// .data
// .type v1,@object
// .size v1,4
// v1:
// .word 0
//
// .globl v2
// .type v2,@object
// .size v2,8
// v2:
// .word v2+4 # R_MIPS_32 target v2 addend 4
// .word v1 # R_MIPS_32 target v1 addend 0
//
// % llvm-mc -filetype=obj -triple=mips-unknown-linux -o test.o test.s
// % ld -m elf32btsmip -shared -o dyn-rel.so.elf-mips test.o
RUN: llvm-readobj -r --dyn-relocations --expand-relocs \
RUN: %p/Inputs/dyn-rel.so.elf-mips | FileCheck %s
// CHECK: Relocations [
// CHECK-NEXT: Section (6) .rel.dyn {
// CHECK-NEXT: Relocation {
// CHECK-NEXT: Offset: 0x0
// CHECK-NEXT: Type: R_MIPS_NONE (0)
// CHECK-NEXT: Symbol: - (0)
// CHECK-NEXT: }
// CHECK-NEXT: Relocation {
// CHECK-NEXT: Offset: 0x102F8
// CHECK-NEXT: Type: R_MIPS_REL32 (3)
// CHECK-NEXT: Symbol: - (0)
// CHECK-NEXT: }
// CHECK-NEXT: Relocation {
// CHECK-NEXT: Offset: 0x102F4
// CHECK-NEXT: Type: R_MIPS_REL32 (3)
// CHECK-NEXT: Symbol: v2 (9)
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK: Dynamic Relocations {
// CHECK-NEXT: Relocation {
// CHECK-NEXT: Offset: 0x0
// CHECK-NEXT: Type: R_MIPS_NONE (0)
// CHECK-NEXT: Symbol: -
// CHECK-NEXT: }
// CHECK-NEXT: Relocation {
// CHECK-NEXT: Offset: 0x102F8
// CHECK-NEXT: Type: R_MIPS_REL32 (3)
// CHECK-NEXT: Symbol: -
// CHECK-NEXT: }
// CHECK-NEXT: Relocation {
// CHECK-NEXT: Offset: 0x102F4
// CHECK-NEXT: Type: R_MIPS_REL32 (3)
// CHECK-NEXT: Symbol: v2
// CHECK-NEXT: }
// CHECK-NEXT: }