pez

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package pez contains a Extractor for the PE compressed Linux Image (vmlinuz, ZBOOT).

Index

Constants

This section is empty.

Variables

View Source
var ErrImageTooSmall = errors.New("image too small")
View Source
var ErrMagicMismatch = errors.New("magic number mismatch")
View Source
var ErrNotZImage = errors.New("not a zimg")
View Source
var ErrUnsupportedCompression = errors.New("unsupported compression type")

Functions

func Extract

func Extract(img io.ReaderAt) (io.ReaderAt, error)

Types

type Header struct {
	Magic       uint32
	Type        uint32
	Offset      uint32
	Size        uint32
	Reserved    [2]uint32
	Compression [4]byte
}

Linux PE zboot header as defined in Linux source drivers/firmware/efi/libstub/zboot-header.S

Jump to

Keyboard shortcuts

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