m68k: add unwind tables to backtrace

This commit is contained in:
Andreas Schwab 2013-01-20 01:31:07 +01:00
parent ed689c2f74
commit 7cd24045d6
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-01-20 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/m68k/Makefile (CFLAGS-backtrace.c): Add -funwind-tables.
2013-01-19 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/m68k/backtrace.c: New file.

View File

@ -26,8 +26,14 @@ asm-CPPFLAGS += $(m68k-syntax-flag)
pic-ccflag = -fpic
ifeq ($(subdir),setjmp)
# Make sure setjmp.c is compiled with a frame pointer
CFLAGS-setjmp.c := -fno-omit-frame-pointer
endif
ifeq ($(subdir),debug)
CFLAGS-backtrace.c += -funwind-tables
endif
ifeq ($(subdir),elf)
CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused