Commit a77d1d19 authored by Tycho Andersen's avatar Tycho Andersen Committed by Ingo Molnar

samples/seccomp: Fix 32-bit build

Both the .o and the actual executable need to be built with -m32 in order
to link correctly.
Reported-by: default avatarIngo Molnar <>
Signed-off-by: default avatarTycho Andersen <>
Reviewed-by: default avatarKees Cook <>
Cc: Borislav Petkov <>
Cc: James Morris <>
Cc: Linus Torvalds <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Fixes: fec7b669 ("samples: add an example of seccomp user trap")
Link: default avatarIngo Molnar <>
parent 3bd6e94b
......@@ -34,6 +34,7 @@ HOSTCFLAGS_bpf-direct.o += $(MFLAG)
HOSTCFLAGS_dropper.o += $(MFLAG)
HOSTCFLAGS_bpf-helper.o += $(MFLAG)
HOSTCFLAGS_bpf-fancy.o += $(MFLAG)
HOSTCFLAGS_user-trap.o += $(MFLAG)
HOSTLDLIBS_bpf-direct += $(MFLAG)
HOSTLDLIBS_bpf-fancy += $(MFLAG)
HOSTLDLIBS_dropper += $(MFLAG)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment