Re: [PATCH v5 0/8] unwind, arm64: add sframe unwinder for kernel
From: Brian Norris
Date: Thu Jul 16 2026 - 13:40:02 EST
Hi Jens,
On Thu, Jul 16, 2026 at 01:03:35PM +0200, Jens Remus wrote:
> This proves thet assembler option --gsframe did not originate from the
> kernel Makefile, but was supplied by GCC for the assembly step. I guess
> it gets injected by some GCC .specs file. Please review the output of:
> for "sframe":
>
> $ aarch64-linux-gnu-gcc -dumpspecs
Thanks for all the pointers!
$ aarch64-linux-gnu-gcc -dumpspecs | grep -B 1 sframe
*asm_options:
%{-target-help:%:print-asm-header()} %{v} %{w:-W} %{I*} %{!m16:%{!m32:%{!mx32:%{!ffreestanding:--gsframe}}}}%(asm_debug_option) %{gz|gz=zlib:--compress-debug-sections=zlib} %{gz=none:--compress-debug-sections=none} %{gz=zstd:--compress-debug-sections=zstd} %{gz=zlib-gnu:}%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
--
*distro_defaults_asm:
%{!m16:%{!m32:%{!mx32:%{!ffreestanding:--gsframe}}}}
I looked further into the bug trackers here, and I see that:
(1) it seems Debian testing(?) and Ubuntu may have enabled sframe by
default
(2) my distro is Debian-testing-based
(3) other people have already requested my distro disable sframe, due to
issues like the following:
https://github.com/rust-lang/rust/issues/155704
https://salsa.debian.org/toolchain-team/gcc/-/commit/bd33f862a3f93c3d3b1fbc8dfb6b0366905d7ab4
I'll follow up with these to make sure #3 is fully resolved. Hopefully
that resolves this problem too.
Thanks again,
Brian