testing library

Test helpers for inspecting tree-shaken ELF binaries and cross-compilation toolchains.

Constants

elfMachineAarch64 → const int
ELF e_machine constant for aarch64 (EM_AARCH64).
elfMachineX86_64 → const int
ELF e_machine constant for x86_64 (EM_X86_64).

Functions

elfDefinedDynamicSymbols(Uint8List bytes) → Set<String>
Returns the names of all defined symbols in the .dynsym section of a 64-bit little-endian ELF binary bytes.
elfMachine(Uint8List bytes) → int
Returns the ELF e_machine field of a 64-bit little-endian ELF binary bytes.
hasAarch64LinuxToolchain() → bool
Returns whether the aarch64-linux-gnu-gcc cross-compilation toolchain is available on the host.