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
56 lines
2.3 KiB
Plaintext
56 lines
2.3 KiB
Plaintext
// REQUIRES: system-linux, native, python
|
|
|
|
// This test verifies that loading an ELF file from memory works and the new
|
|
// features that were added when loading from memory work like:
|
|
// - Loading the .dynamic section from the PT_DYNAMIC since ELF files loaded
|
|
// from memory don't have the section headers available.
|
|
// This test will make a simple executable that:
|
|
// - links against libc
|
|
// - runs and stops at a breakpoint
|
|
// - create a memory ELF file
|
|
// - verify that "image dump objfile" will dump the dynamic section of the
|
|
// memory elf file and find the .dynamic string table.
|
|
|
|
// RUN: %clangxx_host %p/Inputs/memory-elf.cpp -g -O0 -o %t
|
|
|
|
// RUN: %lldb %t -b \
|
|
// RUN: -o "b main" \
|
|
// RUN: -o "run" \
|
|
// RUN: -o "script real_module = lldb.target.module[0]" \
|
|
// RUN: -o "script base_addr = real_module.GetObjectFileHeaderAddress().GetLoadAddress(lldb.target)" \
|
|
// RUN: -o "script mem_module = lldb.SBModule(lldb.process, base_addr)" \
|
|
// RUN: -o "script target2 = lldb.debugger.CreateTarget('')" \
|
|
// RUN: -o "script target2.AddModule(mem_module)" \
|
|
// RUN: -o "target select 1" \
|
|
// RUN: -o "image dump objfile" \
|
|
// RUN: | FileCheck %s --check-prefix=MAIN --dump-input=always
|
|
// MAIN: (lldb) image dump objfile
|
|
// MAIN: Dumping headers for 1 module(s).
|
|
// MAIN: ObjectFileELF, file = '', arch = {{.*, addr = 0x[0-9a-f]+}}
|
|
// MAIN: ELF Header
|
|
|
|
// Make sure we find the program headers and see a PT_DYNAMIC entry.
|
|
// MAIN: Program Headers
|
|
// MAIN: ] PT_DYNAMIC
|
|
|
|
// Make sure we see some sections created from the program headers
|
|
// MAIN: SectID
|
|
// MAIN: PT_LOAD[0]
|
|
|
|
// Ensure we find some dependent modules as won't find these if we aren't able
|
|
// to load the .dynamic section from the PT_DYNAMIC program header.
|
|
// MAIN: Dependent Modules:
|
|
|
|
// Check for the .dynamic dump and ensure we find all dynamic entries that are
|
|
// required to be there and needed to get the .dynstr section and the symbol
|
|
// table, and the DT_DEBUG entry to find the list of shared libraries.
|
|
// MAIN: .dynamic:
|
|
// Make sure we found the .dynstr section by checking for valid strings after NEEDED
|
|
// MAIN-DAG: NEEDED {{0x[0-9a-f]+ ".*libc.*"}}
|
|
// MAIN-DAG: STRTAB {{0x[0-9a-f]+}}
|
|
// MAIN-DAG: SYMTAB {{0x[0-9a-f]+}}
|
|
// MAIN-DAG: STRSZ {{0x[0-9a-f]+}}
|
|
// MAIN-DAG: SYMENT {{0x[0-9a-f]+}}
|
|
// MAIN-DAG: DEBUG {{0x[0-9a-f]+}}
|
|
// MAIN: NULL {{0x[0-9a-f]+}}
|