projects/linux·blob master · refs

12 lines · 426 B

1// SPDX-License-Identifier: GPL-2.0
2/*
3 * A relocatable binary for the binfmt_misc_bpf $ORIGIN case. The Makefile
4 * links it with PT_INTERP set to the literal "$ORIGIN/binfmt_bpf_interp"
5 * (-Wl,--dynamic-linker), which the kernel ELF loader cannot resolve. The
6 * nix_origin bpf handler resolves it relative to this binary's directory and
7 * routes execution to the co-located interpreter.
8 */
9int main(void)
10{
11 return 0;
12}