diff options
| author | John Vogel <jvogel@stygian.me> | 2026-07-28 05:01:42 -0400 |
|---|---|---|
| committer | John Vogel <jvogel@stygian.me> | 2026-07-28 05:01:42 -0400 |
| commit | 7bc38f416153ad68e09fe0c70b349ee19a86a2e6 (patch) | |
| tree | 19bbfa978490bd33adb7a9a39255dd7ac2692b5e /linux-dragon/0005-powerpc-config-defang-gcc-check-for-stack-protector-.patch | |
| download | dragon-7bc38f416153ad68e09fe0c70b349ee19a86a2e6.tar.gz | |
dragon/linux-dragon: new aport
Linux kernel for the Radxa Dragon Q6A. Patch source is from
https://github.com/radxa/kernel from the linux-7.0.11 branch.
Patch is up-to-date with radxa kernel sources at this time.
Diffstat (limited to 'linux-dragon/0005-powerpc-config-defang-gcc-check-for-stack-protector-.patch')
| -rw-r--r-- | linux-dragon/0005-powerpc-config-defang-gcc-check-for-stack-protector-.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/linux-dragon/0005-powerpc-config-defang-gcc-check-for-stack-protector-.patch b/linux-dragon/0005-powerpc-config-defang-gcc-check-for-stack-protector-.patch new file mode 100644 index 0000000..e3ab5d4 --- /dev/null +++ b/linux-dragon/0005-powerpc-config-defang-gcc-check-for-stack-protector-.patch @@ -0,0 +1,36 @@ +From f17d1a24c8ce5c7acf109a4121d86ba4c257948d Mon Sep 17 00:00:00 2001 +From: Ariadne Conill <ariadne@dereferenced.org> +Date: Tue, 18 Feb 2020 21:10:22 +0000 +Subject: [PATCH 5/5] powerpc: config: defang gcc check for stack-protector + support + +When we rebase kernel configs in Alpine, it is common to do so from +an environment where CARCH does not match CHOST. + +Accordingly, we assume that the gcc check will always pass, and +simply remove it in preference for always enabling the +HAVE_STACKPROTECTOR config option. + +Signed-off-by: Ariadne Conill <ariadne@dereferenced.org> +Signed-off-by: Achill Gilgenast <achill@achill.org> +--- + arch/powerpc/Kconfig | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig +index 9537a61ebae0..4d25e50fe7bf 100644 +--- a/arch/powerpc/Kconfig ++++ b/arch/powerpc/Kconfig +@@ -287,8 +287,7 @@ config PPC + select HAVE_SAMPLE_FTRACE_DIRECT_MULTI if HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS + select HAVE_SETUP_PER_CPU_AREA if PPC64 + select HAVE_SOFTIRQ_ON_OWN_STACK +- select HAVE_STACKPROTECTOR if PPC32 && $(cc-option,$(m32-flag) -mstack-protector-guard=tls -mstack-protector-guard-reg=r2 -mstack-protector-guard-offset=0) +- select HAVE_STACKPROTECTOR if PPC64 && $(cc-option,$(m64-flag) -mstack-protector-guard=tls -mstack-protector-guard-reg=r13 -mstack-protector-guard-offset=0) ++ select HAVE_STACKPROTECTOR + select HAVE_STATIC_CALL if PPC32 + select HAVE_STATIC_CALL_INLINE if PPC32 + select HAVE_SYSCALL_TRACEPOINTS +-- +2.52.0 + |
