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
87 lines
2.5 KiB
YAML
87 lines
2.5 KiB
YAML
## Test how we dump SHT_RELR sections for 32 and 64-bit targets.
|
|
|
|
## Test we use the "Entries" property when it is possible to
|
|
## dump values correctly. Also, check we do not dump sh_entsize when
|
|
## it has the default value.
|
|
|
|
# RUN: yaml2obj --docnum=1 -D BITS=32 -D ENCODE=LSB %s -o %t.32le
|
|
# RUN: obj2yaml %t.32le | FileCheck %s --check-prefix=ELF32LE
|
|
# RUN: yaml2obj --docnum=1 -D BITS=32 -D ENCODE=MSB %s -o %t.32be
|
|
# RUN: obj2yaml %t.32be | FileCheck %s --check-prefix=ELF32BE
|
|
# RUN: yaml2obj --docnum=1 -D BITS=64 -D ENCODE=LSB %s -o %t.64le
|
|
# RUN: obj2yaml %t.64le | FileCheck %s --check-prefix=ELF64LE
|
|
# RUN: yaml2obj --docnum=1 -D BITS=64 -D ENCODE=MSB %s -o %t.64be
|
|
# RUN: obj2yaml %t.64be | FileCheck %s --check-prefix=ELF64BE
|
|
|
|
# ELF64LE: Sections:
|
|
# ELF64LE-NEXT: - Name: .relr.dyn
|
|
# ELF64LE-NEXT: Type: SHT_RELR
|
|
# ELF64LE-NEXT: Entries: [ 0x8877665544332211 ]
|
|
|
|
# ELF32LE: Sections:
|
|
# ELF32LE-NEXT: - Name: .relr.dyn
|
|
# ELF32LE-NEXT: Type: SHT_RELR
|
|
# ELF32LE-NEXT: Entries: [ 0x44332211, 0x88776655 ]
|
|
|
|
# ELF64BE: Sections:
|
|
# ELF64BE-NEXT: - Name: .relr.dyn
|
|
# ELF64BE-NEXT: Type: SHT_RELR
|
|
# ELF64BE-NEXT: Entries: [ 0x1122334455667788 ]
|
|
|
|
# ELF32BE: Sections:
|
|
# ELF32BE-NEXT: - Name: .relr.dyn
|
|
# ELF32BE-NEXT: Type: SHT_RELR
|
|
# ELF32BE-NEXT: Entries: [ 0x11223344, 0x55667788 ]
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS[[BITS]]
|
|
Data: ELFDATA2[[ENCODE]]
|
|
Type: ET_DYN
|
|
Sections:
|
|
- Name: .relr.dyn
|
|
Type: SHT_RELR
|
|
Content: "1122334455667788"
|
|
|
|
## Test we use the "Content" property when a SHT_RELR section is truncated.
|
|
|
|
# RUN: yaml2obj --docnum=2 %s -o %t.content
|
|
# RUN: obj2yaml %t.content | FileCheck %s --check-prefix=CONTENT
|
|
|
|
# CONTENT: - Name: .relr.dyn
|
|
# CONTENT-NEXT: Type: SHT_RELR
|
|
# CONTENT-NEXT: Content: '11223344556677'
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2MSB
|
|
Type: ET_DYN
|
|
Sections:
|
|
- Name: .relr.dyn
|
|
Type: SHT_RELR
|
|
Content: "11223344556677"
|
|
|
|
## Test we are able to dump a SHT_RELR section when sh_entsize is invalid.
|
|
## Here we use 0xFE as a value instead of expected 0x8.
|
|
|
|
# RUN: yaml2obj --docnum=3 %s -o %t.entsize
|
|
# RUN: obj2yaml %t.entsize | FileCheck %s --check-prefix=ENTSIZE
|
|
|
|
# ENTSIZE: - Name: .relr.dyn
|
|
# ENTSIZE-NEXT: Type: SHT_RELR
|
|
# ENTSIZE-NEXT: EntSize: 0xFE
|
|
# ENTSIZE-NEXT: Content: '1122334455667788'
|
|
# ENTSIZE-NEXT: ...
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2MSB
|
|
Type: ET_DYN
|
|
Sections:
|
|
- Name: .relr.dyn
|
|
Type: SHT_RELR
|
|
EntSize: 0xFE
|
|
Content: "1122334455667788"
|