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
151 lines
3.5 KiB
ArmAsm
151 lines
3.5 KiB
ArmAsm
# REQUIRES: x86
|
|
## Test EhReader::getFdeEncoding errors in .eh_frame.
|
|
|
|
# RUN: rm -rf %t && split-file %s %t && cd %t
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 unknown-aug.s -o unknown-aug.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 corrupted.s -o corrupted.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 unknown-fde-encoding.s -o unknown-fde-encoding.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 aligned-encoding.s -o aligned-encoding.o
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 unknown-size-encoding.s -o unknown-size-encoding.o
|
|
|
|
# RUN: not ld.lld --eh-frame-hdr unknown-aug.o 2>&1 | FileCheck %s --check-prefix=UNKNOWN-AUG -DPREFIX=error --implicit-check-not=error:
|
|
# RUN: ld.lld --eh-frame-hdr unknown-aug.o --noinhibit-exec 2>&1 | FileCheck %s --check-prefix=UNKNOWN-AUG -DPREFIX=warning
|
|
# RUN: not ld.lld --eh-frame-hdr corrupted.o 2>&1 | FileCheck %s --check-prefix=CORRUPTED --implicit-check-not=error:
|
|
# RUN: not ld.lld --eh-frame-hdr unknown-fde-encoding.o 2>&1 | FileCheck %s --check-prefix=UNKNOWN-FDE --implicit-check-not=error:
|
|
# RUN: ld.lld --eh-frame-hdr unknown-fde-encoding.o --noinhibit-exec
|
|
# RUN: not ld.lld --eh-frame-hdr aligned-encoding.o 2>&1 | FileCheck %s --check-prefix=ALIGNED --implicit-check-not=error:
|
|
# RUN: not ld.lld --eh-frame-hdr unknown-size-encoding.o 2>&1 | FileCheck %s --check-prefix=UNKNOWN-SIZE --implicit-check-not=error:
|
|
|
|
# UNKNOWN-AUG: [[PREFIX]]: corrupted .eh_frame: unknown .eh_frame augmentation string: {{.+}}
|
|
|
|
# CORRUPTED: error: corrupted .eh_frame: corrupted CIE
|
|
|
|
# UNKNOWN-FDE: error: corrupted .eh_frame: unknown FDE encoding
|
|
# UNKNOWN-FDE-NEXT: >>> defined in unknown-fde-encoding.o:(.eh_frame+0xe)
|
|
|
|
# ALIGNED: error: corrupted .eh_frame: DW_EH_PE_aligned encoding is not supported
|
|
|
|
# UNKNOWN-SIZE: error: unknown FDE size encoding
|
|
|
|
#--- unknown-aug.s
|
|
.section .eh_frame,"a",@unwind
|
|
.byte 0x0E
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x01
|
|
.byte 0x01
|
|
.byte 0x00
|
|
.byte 0x01
|
|
|
|
.byte 0x01 # LEB128
|
|
.byte 0x01 # LEB128
|
|
|
|
.byte 0x01
|
|
.byte 0x01
|
|
.byte 0x01
|
|
.byte 0x01
|
|
|
|
#--- corrupted.s
|
|
.section .eh_frame,"a",@unwind
|
|
.byte 0x0E
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x01
|
|
|
|
.byte 0x50 # Augmentation string: 'P','\0'
|
|
.byte 0x00
|
|
|
|
.byte 0x01
|
|
|
|
.byte 0x01 # LEB128
|
|
.byte 0x01 # LEB128
|
|
|
|
.byte 0x03
|
|
.byte 0x01
|
|
.byte 0x01
|
|
.byte 0x01
|
|
|
|
#--- unknown-fde-encoding.s
|
|
.section .eh_frame,"a",@unwind
|
|
.byte 0x0E
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x01
|
|
|
|
.byte 0x50 # Augmentation string: 'P','\0'
|
|
.byte 0x00
|
|
|
|
.byte 0x01
|
|
|
|
.byte 0x01 # LEB128
|
|
.byte 0x01 # LEB128
|
|
|
|
.byte 0x01
|
|
.byte 0x01
|
|
.byte 0x01
|
|
.byte 0x01
|
|
|
|
#--- aligned-encoding.s
|
|
.section .eh_frame,"a",@unwind
|
|
.byte 0x0E
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x00
|
|
.byte 0x01
|
|
|
|
.byte 0x50 # Augmentation string: 'P','\0'
|
|
.byte 0x00
|
|
|
|
.byte 0x01
|
|
|
|
.byte 0x01 # LEB128
|
|
.byte 0x01 # LEB128
|
|
|
|
.byte 0x51
|
|
.byte 0x01
|
|
.byte 0x01
|
|
.byte 0x01
|
|
|
|
#--- unknown-size-encoding.s
|
|
.section .eh_frame,"a",@unwind
|
|
.long 12 # Size
|
|
.long 0x00 # ID
|
|
.byte 0x01 # Version.
|
|
|
|
.byte 0x52 # Augmentation string: 'R','\0'
|
|
.byte 0x00
|
|
|
|
# Code and data alignment factors.
|
|
.byte 0x01 # LEB128
|
|
.byte 0x01 # LEB128
|
|
|
|
# Return address register.
|
|
.byte 0x01 # LEB128
|
|
|
|
.byte 0xFE # 'R' value: invalid <0xFE>
|
|
|
|
.byte 0xFF
|
|
|
|
.long 12 # Size
|
|
.long 0x14 # ID
|
|
.quad .eh_frame
|