Files
TheRock/compiler/amd-llvm/llvm/test/tools/obj2yaml/ELF/section-group.yaml
T
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

60 lines
1.8 KiB
YAML

## Checks that the tool is able to read section groups from ELF.
## Check how groups sections are dumped.
## Check we don't dump the "EntSize" key when sh_entsize == 4.
# RUN: yaml2obj %s -o %t1.o
# RUN: obj2yaml %t1.o | FileCheck %s -DSEC=.rodata
# CHECK: - Name: .group
# CHECK-NEXT: Type: SHT_GROUP
# CHECK-NEXT: Link: .symtab
# CHECK-NEXT: Info: signature
# CHECK-NEXT: Members:
# CHECK-NEXT: - SectionOrType: GRP_COMDAT
# CHECK-NEXT: - SectionOrType: [[SEC]]
# CHECK-NEXT: - Name:
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Sections:
- Name: .group
Type: SHT_GROUP
Link: .symtab
Info: [[INFO=signature]]
EntSize: [[ENTSIZE=<none>]]
Members:
- SectionOrType: GRP_COMDAT
- SectionOrType: [[SEC=.rodata]]
- Name: .rodata
Type: SHT_PROGBITS
Symbols:
- Name: signature
Type: STT_OBJECT
Section: .rodata
## Document that yaml2obj can't dump the SHT_GROUP section when its sh_entsize != 4.
# RUN: yaml2obj %s -DENTSIZE=0xfe -o %t1.entsize.o
# RUN: not obj2yaml %t1.entsize.o 2>&1 | \
# RUN: FileCheck %s -DFILE=%t1.entsize.o --check-prefix=ENTSIZE
# ENTSIZE: Error reading file: [[FILE]]: section [index 1] has invalid sh_entsize: expected 4, but got 254
## Check we are able to dump members of the SHT_GROUP section even when
## one of them has section index 0.
# RUN: yaml2obj -DSEC=0 %s -o %tnull.o
# RUN: obj2yaml %tnull.o | FileCheck %s -DSEC="''"
## Check obj2yaml report an error when sh_info field of
## group section contains invalid (too large) signature symbol index.
# RUN: yaml2obj -DINFO=0xFF %s -o %t2.o
# RUN: not obj2yaml %t2.o 2>&1 | FileCheck %s -DFILE=%t2.o --check-prefix=ERR
# ERR: Error reading file: [[FILE]]: unable to get symbol from section [index 3]: invalid symbol index (255)