A minimal “hello world” smoke test that confirms the fully-static build
(CONFIG_FULLY_STATIC) produces a self-contained ELF. (Source dir:
utils/c/test-static, file hello.c; the built binary is
static_binary_test.)
Usage¶
static_binary_test # prints a greeting
file static_binary_test # should report "statically linked"No arguments. Use it to verify a static toolchain/link is healthy.
See also¶
Fully Static Binaries — the
CONFIG_FULLY_STATICbuild.