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
101 lines
2.9 KiB
Plaintext
101 lines
2.9 KiB
Plaintext
## Check how llvm-readobj prints sections with --sections.
|
|
## We test the --sections flag for llvm-readelf in the gnu-sections.test.
|
|
|
|
# RUN: yaml2obj %s -o %t64
|
|
# RUN: llvm-readobj --sections %t64 | FileCheck %s --check-prefixes=ELF,ELF64
|
|
# RUN: yaml2obj -DBITS=32 %s -o %t32
|
|
# RUN: llvm-readobj --sections %t32 | FileCheck %s --check-prefixes=ELF,ELF32
|
|
|
|
## Check flag aliases produce identical output.
|
|
# RUN: llvm-readobj --sections %t64 > %t64.llvm.sections
|
|
# RUN: llvm-readobj -S %t64 > %t64.llvm.upper.s
|
|
# RUN: cmp %t64.llvm.sections %t64.llvm.upper.s
|
|
# RUN: llvm-readobj --section-headers %t64 > %t64.llvm.section-headers
|
|
# RUN: cmp %t64.llvm.sections %t64.llvm.section-headers
|
|
|
|
# RUN: llvm-readobj --sections %t32 > %t32.llvm.sections
|
|
# RUN: llvm-readobj -S %t32 > %t32.llvm.upper.s
|
|
# RUN: cmp %t32.llvm.sections %t32.llvm.upper.s
|
|
# RUN: llvm-readobj --section-headers %t32 > %t32.llvm.section-headers
|
|
# RUN: cmp %t32.llvm.sections %t32.llvm.section-headers
|
|
|
|
# ELF: Sections [
|
|
# ELF-NEXT: Section {
|
|
# ELF-NEXT: Index: 0
|
|
# ELF-NEXT: Name: (0)
|
|
# ELF-NEXT: Type: SHT_NULL (0x0)
|
|
# ELF-NEXT: Flags [ (0x0)
|
|
# ELF-NEXT: ]
|
|
# ELF-NEXT: Address: 0x0
|
|
# ELF-NEXT: Offset: 0x0
|
|
# ELF-NEXT: Size: 0
|
|
# ELF-NEXT: Link: 0
|
|
# ELF-NEXT: Info: 0
|
|
# ELF-NEXT: AddressAlignment: 0
|
|
# ELF-NEXT: EntrySize: 0
|
|
# ELF-NEXT: }
|
|
# ELF-NEXT: Section {
|
|
# ELF-NEXT: Index: 1
|
|
# ELF-NEXT: Name: .foo (1)
|
|
# ELF-NEXT: Type: SHT_PROGBITS (0x1)
|
|
# ELF-NEXT: Flags [ (0x3)
|
|
# ELF-NEXT: SHF_ALLOC (0x2)
|
|
# ELF-NEXT: SHF_WRITE (0x1)
|
|
# ELF-NEXT: ]
|
|
# ELF-NEXT: Address: 0x2
|
|
# ELF64-NEXT: Offset: 0x41
|
|
# ELF32-NEXT: Offset: 0x37
|
|
# ELF-NEXT: Size: 3
|
|
# ELF-NEXT: Link: 4
|
|
# ELF-NEXT: Info: 1
|
|
# ELF-NEXT: AddressAlignment: 5
|
|
# ELF-NEXT: EntrySize: 6
|
|
# ELF-NEXT: }
|
|
# ELF-NEXT: Section {
|
|
# ELF-NEXT: Index: 2
|
|
# ELF-NEXT: Name: .strtab (16)
|
|
# ELF-NEXT: Type: SHT_STRTAB (0x3)
|
|
# ELF-NEXT: Flags [ (0x0)
|
|
# ELF-NEXT: ]
|
|
# ELF-NEXT: Address: 0x0
|
|
# ELF64-NEXT: Offset: 0x44
|
|
# ELF32-NEXT: Offset: 0x3A
|
|
# ELF-NEXT: Size: 1
|
|
# ELF-NEXT: Link: 0
|
|
# ELF-NEXT: Info: 0
|
|
# ELF-NEXT: AddressAlignment: 1
|
|
# ELF-NEXT: EntrySize: 0
|
|
# ELF-NEXT: }
|
|
# ELF-NEXT: Section {
|
|
# ELF-NEXT: Index: 3
|
|
# ELF-NEXT: Name: .shstrtab (6)
|
|
# ELF-NEXT: Type: SHT_STRTAB (0x3)
|
|
# ELF-NEXT: Flags [ (0x0)
|
|
# ELF-NEXT: ]
|
|
# ELF-NEXT: Address: 0x0
|
|
# ELF64-NEXT: Offset: 0x45
|
|
# ELF32-NEXT: Offset: 0x3B
|
|
# ELF-NEXT: Size: 24
|
|
# ELF-NEXT: Link: 0
|
|
# ELF-NEXT: Info: 0
|
|
# ELF-NEXT: AddressAlignment: 1
|
|
# ELF-NEXT: EntrySize: 0
|
|
# ELF-NEXT: }
|
|
# ELF-NEXT: ]
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS[[BITS=64]]
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Sections:
|
|
- Name: .foo
|
|
Type: SHT_PROGBITS
|
|
Info: 1
|
|
Address: 0x2
|
|
Size: 0x3
|
|
Flags: [ SHF_WRITE, SHF_ALLOC ]
|
|
Link: 4
|
|
AddressAlign: 5
|
|
EntSize: 6
|