]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390: disable SSP when needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 10 May 2021 05:31:33 +0000 (07:31 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 26 May 2021 21:18:19 +0000 (23:18 +0200)
commit04f80b59e59792be4b84b0a4a19f1a8af3aefc54
tree0d7f8b564f79beff563338f080429bbec441d785
parent336fd9f1abdf30765227dbfe48eaf83e7ec83df4
s390: disable SSP when needed

Though -nostdlib is passed in PURGATORY_LDFLAGS and -ffreestanding in
KBUILD_CFLAGS_DECOMPRESSOR, -fno-stack-protector must also be passed to
avoid linking errors related to undefined references to
'__stack_chk_guard' and '__stack_chk_fail' if toolchain enforces
-fstack-protector.

Fixes
 - https://gitlab.com/kubu93/buildroot/-/jobs/1247043361

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Tested-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Link: https://lore.kernel.org/r/20210510053133.1220167-1-fontaine.fabrice@gmail.com
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/Makefile
arch/s390/purgatory/Makefile