public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [RFC 0/2] libbacktrace: add FDPIC support
@ 2024-05-27  6:50 Max Filippov
  2024-05-27  6:50 ` [RFC 1/2] " Max Filippov
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Max Filippov @ 2024-05-27  6:50 UTC (permalink / raw)
  To: gcc-patches; +Cc: Ian Lance Taylor, Max Filippov

This is an RFC series that adds FDPIC ELF target support to
libbacktrace.

While debugging this I've noticed that there's no unwinding info for the
libstdc++ version of libbacktrace, which made backtraces empty for me,
both on xtensa-linux-uclibcfdpic and on regular xtensa-linux-uclibc.
Adding -funwind-tables to the libstdc++ version of libbacktrace fixed
that. Which makes me wonder how it works for other architectures?

Max Filippov (2):
  libbacktrace: add FDPIC support
  libstdc++-v3/src/libbacktrace: add -funwind-tables

 libbacktrace/dwarf.c                      | 60 ++++++++++++++---------
 libbacktrace/elf.c                        | 20 +++++---
 libbacktrace/internal.h                   | 14 +++++-
 libstdc++-v3/src/libbacktrace/Makefile.am |  4 +-
 libstdc++-v3/src/libbacktrace/Makefile.in |  4 +-
 5 files changed, 66 insertions(+), 36 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-11 16:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-27  6:50 [RFC 0/2] libbacktrace: add FDPIC support Max Filippov
2024-05-27  6:50 ` [RFC 1/2] " Max Filippov
2024-06-11 16:54   ` Max Filippov
2024-05-27  6:50 ` [RFC 2/2] libstdc++-v3/src/libbacktrace: add -funwind-tables Max Filippov
2024-05-27  7:01 ` [RFC 0/2] libbacktrace: add FDPIC support Rainer Orth
2024-05-27  7:12   ` Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).