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
50 lines
1.8 KiB
ArmAsm
50 lines
1.8 KiB
ArmAsm
# REQUIRES: mips
|
|
# Check that we correctly write addends if the output use Elf_Rel but the input
|
|
# uses Elf_Rela
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t-rela.o
|
|
# RUN: llvm-readobj -h -S --section-data -r %t-rela.o \
|
|
# RUN: | FileCheck -check-prefix INPUT-RELA %s
|
|
|
|
# INPUT-RELA: ElfHeader {
|
|
# INPUT-RELA: Class: 64-bit
|
|
# INPUT-RELA: DataEncoding: BigEndian
|
|
# INPUT-RELA: Section {
|
|
# INPUT-RELA: Name: .data
|
|
# INPUT-RELA: SectionData (
|
|
# INPUT-RELA-NEXT: 0000: 00000000 00000000 ABCDEF00 12345678
|
|
# ^--- No addend here since it uses RELA
|
|
# INPUT-RELA: Relocations [
|
|
# INPUT-RELA-NEXT: Section ({{.+}}) .rela.data {
|
|
# INPUT-RELA-NEXT: 0x0 R_MIPS_64/R_MIPS_NONE/R_MIPS_NONE foo 0x5544
|
|
# INPUT-RELA-NEXT: }
|
|
# INPUT-RELA-NEXT: ]
|
|
|
|
# Previously the addend to the dynamic relocation in the .data section
|
|
# was not copied if the input file used RELA and the output uses REL.
|
|
# Check that it works now:
|
|
# RUN: ld.lld -shared -o %t.so %t-rela.o -verbose
|
|
# RUN: llvm-readobj -h -S --section-data -r %t.so \
|
|
# RUN: | FileCheck -check-prefix RELA-TO-REL %s
|
|
|
|
# RELA-TO-REL: ElfHeader {
|
|
# RELA-TO-REL: Class: 64-bit
|
|
# RELA-TO-REL: DataEncoding: BigEndian
|
|
# RELA-TO-REL: Section {
|
|
# RELA-TO-REL: Name: .data
|
|
# RELA-TO-REL: Address: 0x[[DATA:[0-9A-F]+]]
|
|
# RELA-TO-REL: SectionData (
|
|
# RELA-TO-REL-NEXT: 0000: 00000000 00005544 ABCDEF00 12345678
|
|
# ^--- Addend for relocation in .rel.dyn
|
|
# RELA-TO-REL: Relocations [
|
|
# RELA-TO-REL-NEXT: Section ({{.+}}) .rel.dyn {
|
|
# RELA-TO-REL-NEXT: 0x[[DATA]] R_MIPS_REL32/R_MIPS_64/R_MIPS_NONE foo
|
|
# RELA-TO-REL-NEXT: }
|
|
# RELA-TO-REL-NEXT: ]
|
|
|
|
.extern foo
|
|
|
|
.data
|
|
.quad foo + 0x5544
|
|
.quad 0xabcdef0012345678
|