Skip to content

Commit

Permalink
updated ebpf makefile
Browse files Browse the repository at this point in the history
 - Added -fno-stack-protector:
   https://lore.kernel.org/bpf/194f38f2dc7d521375e5a660baaf1be31536be9a.camel@gmail.com/
   https://reviews.llvm.org/D142046

 - Added -Wno-unused-value, -Wunused to warn on unitialized/not used
   variables.

kudos to @planetoryd for reporting this (#1080).
  • Loading branch information
gustavo-iniguez-goya committed Feb 5, 2024
1 parent dddfdc9 commit 51779e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ebpf_prog/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ CLANG_FLAGS = -I. \
-D__KERNEL__ -D__BPF_TRACING__ -Wno-unused-value -Wno-pointer-sign \
-D__TARGET_ARCH_$(ARCH) -Wno-compare-distinct-pointer-types \
$(EXTRA_FLAGS) \
-Wunused \
-Wno-unused-value \
-Wno-gnu-variable-sized-type-not-at-end \
-Wno-address-of-packed-member -Wno-tautological-compare \
-Wno-address-of-packed-member \
-Wno-tautological-compare \
-Wno-unknown-warning-option \
-fno-stack-protector \
-g -O2 -emit-llvm

all: $(BIN)
Expand Down

0 comments on commit 51779e8

Please sign in to comment.