elfutil

package
v0.0.0-...-8052aa4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureROMContiguous

func EnsureROMContiguous(f *elf.File, startAddr, endAddr, maxContiguousDiff uint64) error

EnsureROMContiguous checks ROM program memory is contiguously represented between startAddr and endAddr addresses and returns error if not contiguous to within maxContiguousDiff bytes.

func ProgIsROM

func ProgIsROM(prog *elf.Prog) bool

ProgIsROM checks if the program header memory lives on the read only memory (flash).

func ROMAddr

func ROMAddr(f *elf.File) (startAddr, endAddr uint64, err error)

ROMAddr returns the read-only memory start and end address of the ELF file.

func ReadROMAt

func ReadROMAt(f *elf.File, b []byte, addr uint64) (int, error)

ReadROMAt reads from the binary sections representing read-only-memory (ROM) starting at address addr.

func SectionIsROM

func SectionIsROM(section *elf.Section) bool

SectionIsROM checks if the section is meant to exist on firmware.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL