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
96 lines
2.5 KiB
YAML
96 lines
2.5 KiB
YAML
## Check how obj2yaml dumps SHT_NOTE sections.
|
|
|
|
## We can dump the Name, Desc and Type fields when the note section is valid.
|
|
|
|
# RUN: yaml2obj --docnum=1 %s -o %t1
|
|
# RUN: obj2yaml %t1 | FileCheck %s --check-prefix=VALID
|
|
|
|
# VALID: - Name: .note.foo
|
|
# VALID-NEXT: Type: SHT_NOTE
|
|
# VALID-NEXT: Notes:
|
|
# VALID-NEXT: - Name: ''
|
|
# VALID-NEXT: Desc: ''
|
|
# VALID-NEXT: Type: 0x0
|
|
# VALID-NEXT: - Name: .note.bar
|
|
# VALID-NEXT: Type: SHT_NOTE
|
|
# VALID-NEXT: Notes:
|
|
# VALID-NEXT: - Name: ABC
|
|
# VALID-NEXT: Desc: '001122'
|
|
# VALID-NEXT: Type: 0xAABBCCDD
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Sections:
|
|
- Name: .note.foo
|
|
Type: SHT_NOTE
|
|
Size: 12
|
|
- Name: .note.bar
|
|
Type: SHT_NOTE
|
|
Notes:
|
|
- Name: ABC
|
|
Desc: '001122'
|
|
Type: 0xAABBCCDD
|
|
|
|
## Check we dump hex digit pairs if the note section is invalid.
|
|
|
|
# RUN: yaml2obj --docnum=2 %s -o %t2
|
|
# RUN: obj2yaml %t2 | FileCheck %s --check-prefix=INVALID
|
|
|
|
# INVALID: - Name: .note.tooShortNote
|
|
# INVALID-NEXT: Type: SHT_NOTE
|
|
# INVALID-NEXT: Content: '0000000000000000000000'
|
|
# INVALID-NEXT: - Name: .note.tooLongNameSize
|
|
# INVALID-NEXT: Type: SHT_NOTE
|
|
# INVALID-NEXT: Content: 0100000000000000FF00000000
|
|
# INVALID-NEXT: - Name: .note.tooLongDescSize
|
|
# INVALID-NEXT: Type: SHT_NOTE
|
|
# INVALID-NEXT: Content: 0000000001000000FF00000000
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Sections:
|
|
## Content is less than 12 bytes in size.
|
|
## (12 is the size of n_namesz, n_descsz and n_type 4-bytes fields that must always present).
|
|
- Name: .note.tooShortNote
|
|
Type: SHT_NOTE
|
|
Size: 11
|
|
## We can't dump the Name, Desc and Type fields when the
|
|
## content is shorter than the computed size.
|
|
##
|
|
## Too long name size.
|
|
- Name: .note.tooLongNameSize
|
|
Type: SHT_NOTE
|
|
Content: "0100000000000000ff00000000"
|
|
## Too long description size.
|
|
- Name: .note.tooLongDescSize
|
|
Type: SHT_NOTE
|
|
Content: "0000000001000000ff00000000"
|
|
|
|
## Check we do not crash when dumping a description that has bytes
|
|
## on its bounds that do not fit into signed byte.
|
|
## This is a completely normal case, but we had a crash before.
|
|
|
|
# RUN: yaml2obj --docnum=3 %s -o %t3
|
|
# RUN: obj2yaml %t3 | FileCheck %s --check-prefix=HEX-DESC
|
|
|
|
# HEX-DESC: Desc: FE0000FE
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2MSB
|
|
Type: ET_DYN
|
|
Sections:
|
|
- Name: .note.tag
|
|
Type: SHT_NOTE
|
|
Flags: [ SHF_ALLOC ]
|
|
Notes:
|
|
- Desc: 'FE0000FE'
|
|
Type: 0
|