Files
TheRock/compiler/amd-llvm/llvm/test/tools/yaml2obj/XCOFF/offset-check.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

92 lines
3.0 KiB
YAML

## Report errors when specified file offsets are invalid.
# RUN: not yaml2obj %s -DTEXTRAWDATAOFFSET=0xFFFFFFF0 -o %t 2>&1 | \
# RUN: FileCheck %s --check-prefix=ERROR1
# ERROR1: current file offset (4294967288) is bigger than the specified FileOffsetToData for the .data section (108)
# RUN: not yaml2obj %s -DDATARAWDATAOFFSET=0xFFFFFFF0 -o %t 2>&1 | \
# RUN: FileCheck %s --check-prefix=ERROR2
# ERROR2: current file offset (4294967284) is bigger than the specified FileOffsetToRelocations for the .text section (112)
# RUN: not yaml2obj %s -DRELOCOFFSET=0xFFFFFFF0 -o %t 2>&1 | \
# RUN: FileCheck %s --check-prefix=ERROR3
# ERROR3: current file offset (4294967290) is bigger than the specified SymbolTableOffset (122)
# RUN: not yaml2obj %s -DSYMTABOFFSET=0x100000000 -o %t 2>&1 | \
# RUN: FileCheck %s --check-prefix=ERROR4
# ERROR4: maximum object size of 4294967295 exceeded when writing symbols
# RUN: not yaml2obj %s -DRELOCOFFSET=0x100000000 -o %t 2>&1 | \
# RUN: FileCheck %s --check-prefix=ERROR5
# ERROR5: maximum object size (4294967295) exceeded when writing relocation data for section .text
# RUN: not yaml2obj %s -DDATARAWDATAOFFSET=0x100000000 -o %t 2>&1 | \
# RUN: FileCheck %s --check-prefix=ERROR6
# ERROR6: maximum object size (4294967295) exceeded when writing data for section 2 (.data)
--- !XCOFF
FileHeader:
MagicNumber: 0x1DF
NumberOfSections: 2
OffsetToSymbolTable: [[SYMTABOFFSET=0x7A]]
EntriesInSymbolTable: 6
AuxiliaryHeaderSize: 0
Flags: 0x0
Sections:
- Name: .text
Address: 0x0
Size: 0x8
FileOffsetToData: [[TEXTRAWDATAOFFSET=0x64]]
FileOffsetToRelocations: [[RELOCOFFSET=0x70]]
NumberOfRelocations: 0x1
Flags: [ STYP_TEXT ]
SectionData: 386000004BFFFFFC
Relocations:
- Address: 0x4
Symbol: 0x2
Info: 0x99
Type: 0x1A
- Name: .data
Address: 0x0
Size: 0x4
FileOffsetToData: [[DATARAWDATAOFFSET=0x6C]]
FileOffsetToRelocations: 0
Flags: [ STYP_DATA ]
SectionData: 3210ABCD
Symbols:
- Name: .bar
Value: 0x0
Section: N_UNDEF
Type: 0x0
StorageClass: C_EXT
NumberOfAuxEntries: 1
AuxEntries:
- Type: AUX_CSECT
SymbolAlignmentAndType: 0
StorageMappingClass: XMC_PR
SectionOrLength: 0
- Name: ''
Value: 0x0
Section: .text
Type: 0x0
StorageClass: C_HIDEXT
NumberOfAuxEntries: 1
AuxEntries:
- Type: AUX_CSECT
SymbolAlignmentAndType: 17
StorageMappingClass: XMC_PR
SectionOrLength: 8
- Name: .foo
Value: 0x0
Section: .text
Type: 0x0
StorageClass: C_EXT
NumberOfAuxEntries: 1
AuxEntries:
- Type: AUX_CSECT
SymbolAlignmentAndType: 2
StorageMappingClass: XMC_PR
SectionOrLength: 2
StringTable: {}
...