Re: 2.6.17-mm5 -- Busted toolchain? -- usr/klibc/exec_l.c:59: undefined reference to `__stack_chk_fail'

H. Peter Anvin
2006-07-02T04:53:33Z

Miles Lane wrote:
>
> CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
> $(call cc-option, -fno-stack-protector, ) -fno-common
> in Makefile.
>
> Trying to compile, I get:
>
> include/asm/system.h: In function '__set_64bit_var':
> include/asm/system.h:209: warning: dereferencing type-punned pointer
> will break strict-aliasing rules

That's because the kernel CFLAGS need to include -fno-strict-aliasing.

-hpa