[PATCH] Fix stack-protector for powerpc

Tom Rini trini at konsulko.com
Wed Nov 29 17:57:48 CET 2023


On Wed, Nov 15, 2023 at 07:36:36PM +0100, Christophe Leroy wrote:

> On powerpc, stack protector expects a function called
> __stack_chk_fail_local() instead of __stack_chk_fail()
> 
> And some versions of GCC for powerpc default to TLS canary
> instead of global canary, so always force GCC to use global
> canary with -mstack-protector-guard=global
> 
> Cc: Joel Peshkin <joel.peshkin at broadcom.com>
> Fixes: 4e9bce12432 ("Add support for stack-protector")
> Signed-off-by: Christophe Leroy <christophe.leroy at csgroup.eu>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20231129/eba4a442/attachment.sig>


More information about the U-Boot mailing list