Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-objdump/X86/elf-disassemble.test
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

54 lines
1.6 KiB
Plaintext

## Show that disassembly is printed correctly, for only the desired sections.
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-objdump %t.o -d | FileCheck %s --implicit-check-not=Disassembly
# RUN: llvm-objdump %t.o --disassemble-all | FileCheck %s --check-prefixes=CHECK,ALL
## Show that disassembly is enabled by default for --traceback-table, even for non-XCOFF objects.
# RUN: llvm-objdump %t.o --traceback-table | FileCheck %s --implicit-check-not=Disassembly
# CHECK: Disassembly of section .executable:
# CHECK-EMPTY:
# CHECK-NEXT: 0000000000001000 <.executable>:
# CHECK-NEXT: 0: 90 nop
# ALL-EMPTY:
# ALL-NEXT: Disassembly of section .writable:
# ALL-EMPTY:
# ALL-NEXT: 0000000000002000 <.writable>:
# ALL-NEXT: 0: c3 retq
# ALL-EMPTY:
# ALL-NEXT: Disassembly of section .readonly:
# ALL-EMPTY:
# ALL-NEXT: 0000000000003000 <.readonly>:
# ALL-NEXT: 0: 01 00 addl %eax, (%rax)
# ALL-EMPTY:
# ALL-NEXT: Disassembly of section .nobits:
# ALL-EMPTY:
# ALL-NEXT: 0000000000004000 <.nobits>:
# ALL-NEXT: ...
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .executable
Type: SHT_PROGBITS
Address: 0x1000
Flags: [SHF_EXECINSTR]
Content: '90'
- Name: .writable
Type: SHT_PROGBITS
Address: 0x2000
Flags: [SHF_WRITE]
Content: 'c3'
- Name: .readonly
Type: SHT_PROGBITS
Address: 0x3000
Content: '0100'
- Name: .nobits
Type: SHT_NOBITS
Address: 0x4000
Size: 4