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
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
## This is a generic test for SHT_REL/SHT_RELA sections.
|
|
|
|
## Check that we do not print excessive default
|
|
## fields for SHT_REL[A] sections.
|
|
# RUN: yaml2obj %s -o %t1
|
|
# RUN: obj2yaml %t1 | FileCheck %s --check-prefix=YAML
|
|
|
|
## Note: it is important to have at least two sections with sh_info == 0.
|
|
## Previously we printed a broken Info field in this case.
|
|
# YAML: - Name: .rela.dyn
|
|
# YAML-NEXT: Type: SHT_RELA
|
|
# YAML-NEXT: - Name: .rel.dyn
|
|
# YAML-NEXT: Type: SHT_REL
|
|
# YAML-NEXT: - Name
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Sections:
|
|
- Name: .rela.dyn
|
|
Type: SHT_RELA
|
|
- Name: .rel.dyn
|
|
Type: SHT_REL
|
|
## Trigger the .dynsym emission.
|
|
DynamicSymbols: []
|
|
|
|
## Test the behavior when the sh_entsize field is broken.
|
|
## Here we use the 0xFE value instead of expected 0x18/0x10.
|
|
|
|
# RUN: yaml2obj -DTYPE=SHT_RELA --docnum=2 %s -o %t2.rela
|
|
# RUN: not obj2yaml %t2.rela 2>&1 | FileCheck %s --check-prefix=ERR1
|
|
# RUN: yaml2obj -DTYPE=SHT_REL --docnum=2 %s -o %t2.rel
|
|
# RUN: not obj2yaml %t2.rel 2>&1 | FileCheck %s --check-prefix=ERR2
|
|
|
|
# ERR1: section [index 1] has invalid sh_entsize: expected 24, but got 254
|
|
# ERR2: section [index 1] has invalid sh_entsize: expected 16, but got 254
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Sections:
|
|
- Name: .foo
|
|
Type: [[TYPE]]
|
|
EntSize: 0xFE
|