[Buildroot] [PATCH 1/1] package/sudo: disable use of stack protector when not available

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Sep 15 21:44:17 UTC 2015


Dear Brendan Heading,

On Tue, 15 Sep 2015 22:41:11 +0100, Brendan Heading wrote:

> My guess is that this is down to differences between how SSP is
> implemented on certain arches. powerpc has a few stack protector
> related failures in similar circumstances (I submitted a patch for
> ruby with a similar fix). It seems that the compiler and linker
> sometimes accept -fstack-protector even when SSP is unsupported.

I also thought of an architecture specific issue, but I tried with
http://autobuild.buildroot.org/toolchains/configs/br-powerpc-e500mc-full.config
and it also built just fine.

I have nothing against your patch in principle, it can only be good to
explicitly disable stack protector usage when the necessary support is
not there. I'm just curious to understand why the detection does work
in certain cases and not in others.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list