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
98 lines
2.4 KiB
YAML
98 lines
2.4 KiB
YAML
## Test how we dump SHT_CREL sections.
|
|
# RUN: yaml2obj %s -o %t1
|
|
# RUN: obj2yaml %t1 | FileCheck %s --check-prefix=YAML
|
|
|
|
# YAML: - Name: .crel.text
|
|
# YAML-NEXT: Type: SHT_CREL
|
|
# YAML-NEXT: Link: .symtab
|
|
# YAML-NEXT: Info: .text
|
|
# YAML-NEXT: Relocations:
|
|
# YAML-NEXT: - Offset: 0x1
|
|
# YAML-NEXT: Symbol: g1
|
|
# YAML-NEXT: Type: R_X86_64_32
|
|
# YAML-NEXT: Addend: 1
|
|
# YAML-NEXT: - Offset: 0x2
|
|
# YAML-NEXT: Symbol: l1
|
|
# YAML-NEXT: Type: R_X86_64_64
|
|
# YAML-NEXT: Addend: 2
|
|
# YAML-NEXT: - Symbol: g1
|
|
# YAML-NEXT: Type: R_X86_64_32S
|
|
# YAML-NEXT: Addend: -1
|
|
# YAML-NEXT: - Offset: 0x4
|
|
# YAML-NEXT: Symbol: .text
|
|
# YAML-NEXT: Type: R_X86_64_32S
|
|
# YAML-NEXT: Addend: -9223372036854775808
|
|
# YAML-NEXT: - Name: .crel.dyn
|
|
# YAML-NEXT: Type: SHT_CREL
|
|
# YAML-NEXT: Relocations: []
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
|
|
Sections:
|
|
- Name: .foo
|
|
Type: SHT_PROGBITS
|
|
Flags: [SHF_ALLOC]
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Content: "0000000000000000"
|
|
Flags: [SHF_ALLOC]
|
|
- Name: .crel.text
|
|
Type: SHT_CREL
|
|
Info: .text
|
|
Link: .symtab
|
|
Relocations:
|
|
- Offset: 0x1
|
|
Symbol: g1
|
|
Type: R_X86_64_32
|
|
Addend: 1
|
|
- Offset: 0x2
|
|
Symbol: l1
|
|
Type: R_X86_64_64
|
|
Addend: 2
|
|
- Offset: 0x0
|
|
Symbol: g1
|
|
Type: R_X86_64_32S
|
|
Addend: 0xffffffffffffffff
|
|
- Offset: 0x4
|
|
Symbol: .text
|
|
Type: R_X86_64_32S
|
|
Addend: 0x8000000000000000
|
|
- Name: .crel.dyn
|
|
Type: SHT_CREL
|
|
Content: 00
|
|
## Trigger the .dynsym emission.
|
|
DynamicSymbols: []
|
|
Symbols:
|
|
- Name: unused
|
|
Section: .text
|
|
- Name: .text
|
|
Type: STT_SECTION
|
|
Section: .text
|
|
- Name: l1
|
|
- Name: g1
|
|
Section: .text
|
|
Value: 0x0
|
|
Size: 4
|
|
Binding: STB_GLOBAL
|
|
|
|
## Test the behavior when the sh_entsize field is broken.
|
|
|
|
# RUN: yaml2obj -DTYPE=SHT_RELA --docnum=2 %s -o %t2
|
|
# RUN: not obj2yaml %t2 2>&1 | FileCheck %s --check-prefix=ERR1
|
|
|
|
# ERR1: unable to decode LEB128 at offset 0x00000000: malformed uleb128, extends past end
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Sections:
|
|
- Name: .foo
|
|
Type: SHT_CREL
|