]> git.ipfire.org Git - thirdparty/u-boot.git/commit
Fix stack-protector for powerpc
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 15 Nov 2023 18:36:36 +0000 (19:36 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 29 Nov 2023 14:32:15 +0000 (09:32 -0500)
commit4072572b0f8aeffedcd908dc45b7e046ee0554b0
treec01a59061bf744dbd5667023b4fe8a1fac4f1c7b
parent654580eee13bc7a0d4ed4cad2b2fead1ec88107a
Fix stack-protector for powerpc

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@broadcom.com>
Fixes: 4e9bce12432 ("Add support for stack-protector")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Makefile
common/stackprot.c