Skip to content

Commit

Permalink
ebpf: fix harmless warning while loading eBPF prog
Browse files Browse the repository at this point in the history
simple add -fno-asynchronous-unwind-tables to CFLAGS in order to get ride of
warning while libbpf is loading eBPF prog:

libbpf: elf: skipping unrecognized data section(32) .eh_frame
libbpf: elf: skipping relo section(33) .rel.eh_frame for section(32) .eh_frame
  • Loading branch information
acassen committed Nov 6, 2024
1 parent 42b8b56 commit e719d17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@ $(TARGETS): %.bpf: %.c
-Wno-tautological-compare \
-Wno-unknown-warning-option \
-Wno-address-of-packed-member \
-fno-asynchronous-unwind-tables \
-O2 -emit-llvm -g -c $< -o ${@:.bpf=.ll}
@$(LLC) -march=bpf -filetype=obj -o $(BIN)/$@ ${@:.bpf=.ll}

0 comments on commit e719d17

Please sign in to comment.