perf build: Always disable stack protection for BPF skeleton objects
authorFederico Pellegrin <fede@evolware.org>
Fri, 18 Jul 2025 04:12:24 +0000 (06:12 +0200)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 21 Jul 2025 03:49:35 +0000 (20:49 -0700)
commite9fdf0d2ecc095ce9f078588c7ce06967e0138b2
treec26b6c1b638b31159451c73de82ead39065d27bd
parent39f473f6d0b24cf375893f2110b1cc9d8a079a42
perf build: Always disable stack protection for BPF skeleton objects

When the clang toolchain has stack protection enabled, the bpf
skeletons build fails with:

error: A call to built-in function '__stack_chk_fail' is not supported.

Since stack-protector makes no sense for the BPF bits, just unconditionally
disable it.

See also similar case at 878625e1c7a10dfbb1fdaaaae2c4d2a58fbce627

Signed-off-by: Federico Pellegrin <fede@evolware.org>
Link: https://lore.kernel.org/r/20250718041224.12389-1-fede@evolware.org
[ rearrange long lines ]
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/Makefile.perf