#!/usr/bin/env bash # brintreadelf — llvm-readelf from the pinned LLVM. # # Object and section inspection; the wasm32 kernel build reaches for it by name. # # Routed through libexec/config.sh rather than left to PATH: a host llvm-readelf of a # different version cannot read this toolchain's bitcode, and its failure mode # is an empty or wrong answer rather than a version error. set -euo pipefail # readlink -f, not dirname alone: these front doors are meant to be symlinked # into a prefix on PATH, and a symlink's dirname is the prefix, not this repo. source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/../libexec/config.sh" brintium_require llvm brintium_exec_llvm_tool llvm-readelf "$@"