Enumerations

enum ElfClass
Name Value
k32Bit 1
k64Bit 2

Defined at line 15 of file ../../src/lib/unwinder/elf_utils.h

Functions

  • Elf64_Ehdr UpcastEhdr (const Elf32_Ehdr & ehdr32)

    Defined at line 9 of file ../../src/lib/unwinder/elf_utils.cc

  • template <typename Ehdr>
    bool VerifyElfIdentification (const Ehdr & ehdr, ElfClass expected_class)

    Defined at line 27 of file ../../src/lib/unwinder/elf_utils.h

  • Elf64_Phdr UpcastPhdr (const Elf32_Phdr & phdr32)

    Defined at line 28 of file ../../src/lib/unwinder/elf_utils.cc

  • template <typename Ehdr, typename Shdr>
    fit::result<Error, Shdr> GetSectionByName (Memory * elf, uint64_t elf_ptr, std::string_view target_section, const Ehdr & ehdr)

    Searches for |target_section| in the section headers for the given ELF module. |elf_ptr| should

    point to the beginning of the ELF header when this function is called.

    Defined at line 36 of file ../../src/lib/unwinder/elf_utils.h

  • Elf64_Shdr UpcastShdr (const Elf32_Shdr & shdr32)

    Defined at line 41 of file ../../src/lib/unwinder/elf_utils.cc

  • template <typename Ehdrtypename Phdr>
    fit::result<Error, Phdr> GetSegmentByType (Memory * elfuint64_t elf_ptruint32_t p_typeconst Ehdr & ehdr)

    Defined at line 67 of file ../../src/lib/unwinder/elf_utils.h