bootx_init.c:88: undefined reference to `__stack_chk_fail_local'
David Laight
David.Laight at ACULAB.COM
Fri Jan 13 23:23:24 AEDT 2017
From: Christophe LEROY
> Sent: 13 January 2017 12:15
...
> > Which leads to TARGET_LIBC_PROVIDES_SSP being undefined (it would normally
> > be true for glibc >= 2.4), and that is all. Mystery solved. Thanks!
> >
>
> Is there a way to know during compilation how the compiler will behave,
> in order to select the correct method ?
>
> I have drafted a new approach in the kernel that uses -0x7008(r2)
> instead of the global __stack_chk_guard, but how can I select the proper
> approach during kernel compilation in line with the selected GCC ?
Worse, how can you ensure that loadable modules are compiled with the
same option as the rest of the kernel.
David
More information about the Linuxppc-dev
mailing list