UNPKG

elflib

Version:
20 lines (19 loc) 912 B
/// <reference types="node" /> import * as ELF from './types/index.js'; export declare function hexdump(buf: Buffer | ArrayBuffer): string; interface DebugOptions { printSections?: boolean; printStrings?: boolean; printSymbols?: boolean; printRelocations?: boolean; } /** Print debug information for an ELF file, similar to readelf or objdump. * @param {ELF.File} elf The parsed ELF file data to print debug info for. * @param {(boolean | DebugOptions)} [options=DefaultDebugOptions] If true, all debug info will be printed. * @returns {string} The debug info for the ELF file. */ export declare function debug(elf: ELF.File, options?: boolean | DebugOptions): string; export declare function printHeaderTable(elf: ELF.File): void; export declare function printSectionsTable(elf: ELF.File): void; export declare function printSectionsCompressionInfoTable(elf: ELF.File): void; export {};