Skip to content
Snippets Groups Projects
Commit 4072572b authored by christophe leroy's avatar christophe leroy Committed by Tom Rini
Browse files

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: 4e9bce12 ("Add support for stack-protector")
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
parent 654580ee
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment