mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-11 19:39:21 +00:00
Some/most of the samples/tools throw and error, e.g.: LLVM ERROR: Cannot select: 0x56049b79dcb0: ch,glue = BPFISD::CALL 0x56049a93ad60, TargetExternalSymbol:i64'__stack_chk_fail' 0x56049b391500: i64 = TargetExternalSymbol'__stack_chk_fail' In function: waker bcc-stack-protector.patch adds -fno-stack-protector to the CFLAGS which fixes this error. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
13 lines
424 B
Makefile
13 lines
424 B
Makefile
KERNEL_FILES=-C ../../kernel/x86_64 kernel-headers.tar kernel-dev.tar kernel-modules.tar
|
|
|
|
default: ebpf.tag
|
|
|
|
ebpf.tag: Dockerfile 100-musl-compat.patch bcc-gnuism.patch bcc-stack-protector.patch decl.patch intl.patch temp_failure.patch cdefs.h error.h
|
|
BUILD=$$( tar cf - $^ $(KERNEL_FILES) | docker build -q - ) && [ -n "$$BUILD" ] && echo "Built $$BUILD" && \
|
|
echo $$BUILD > $@
|
|
|
|
clean:
|
|
rm -f ebpf.tag
|
|
|
|
.DELETE_ON_ERROR:
|