Documentation
¶
Overview ¶
Package executable holds what the artifact decomposers for compiled programs share: recognizing an executable by its magic number and reading a named section out of it, whatever its object format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Magic ¶
Magic reports whether header, the first bytes of a file, opens an executable in one of the formats the decomposers read: ELF, PE or Mach-O (thin, either endianness, 32 or 64 bit).
func Section ¶
Section returns the contents of the named section of the executable, or nil when the file has no such section, is not an executable in a format Section reads, or is a malformed one. Only a failure reading the section data of a well-formed file is an error: a decomposer probing files it does not own must not fail on the ones that are not its business.
Types ¶
This section is empty.