[PATCH] riscv: Terminate the frame-pointer chain at entry points [BZ #34950]

Tommy Chen gcchen@google.com
Sat Nov 14 01:34:31 GMT 2026


On Thu, Nov 12, 2026 at 11:00 AM Palmer Dabbelt <palmer@dabbelt.com> wrote:
> On Thu, 12 Nov 2026 10:55:50 PST (-0800), bergner@oss.tenstorrent.com wrote:
> > However, is this something you actually hit?  I ask, because GCC and LLVM
> > default to -fomit-frame-pointer, including when building GLIBC, so it seems
> > doubtful you could backtrace using s0/fp all the way through the userspace
> > call stack to _start.
>
> At least Fedora defaults to enabling frame pointers already.

Thanks for the reviews, Peter, Jeff and Palmer.

Yes, we hit this problem in our toolchain. As Palmer notes, it is now
a default for a few distros, including Fedora and Ubuntu 24.04.

I don't have commit access, so I'd appreciate it if someone could push this.

Thanks,
Tommy


More information about the Libc-alpha mailing list