From 66839b512a727a6caf47b4c7abcc2a8745f8962f Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 31 Jul 2015 02:35:30 +0300 Subject: [PATCH] Update libunwind submodule. --- software/libbase/Makefile | 2 +- software/libbase/environ.c | 11 ----------- software/libunwind/Makefile | 2 +- software/unwinder | 2 +- 4 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 software/libbase/environ.c diff --git a/software/libbase/Makefile b/software/libbase/Makefile index 35f92f65..c1f2434d 100644 --- a/software/libbase/Makefile +++ b/software/libbase/Makefile @@ -1,7 +1,7 @@ MSCDIR=../.. include $(MSCDIR)/software/common.mak -OBJECTS=exception.o libc.o errno.o crc16.o crc32.o console.o environ.o system.o id.o uart.o time.o qsort.o strtod.o spiflash.o +OBJECTS=exception.o libc.o errno.o crc16.o crc32.o console.o system.o id.o uart.o time.o qsort.o strtod.o spiflash.o all: crt0-$(CPU).o libbase.a libbase-nofloat.a diff --git a/software/libbase/environ.c b/software/libbase/environ.c deleted file mode 100644 index 2c2c92f0..00000000 --- a/software/libbase/environ.c +++ /dev/null @@ -1,11 +0,0 @@ -#include -#include - -char *getenv(const char *varname) { - if(!strcmp(varname, "LIBUNWIND_PRINT_APIS") || - !strcmp(varname, "LIBUNWIND_PRINT_UNWINDING")) { - return "1"; - } else { - return NULL; - } -} diff --git a/software/libunwind/Makefile b/software/libunwind/Makefile index f250db79..899eff43 100644 --- a/software/libunwind/Makefile +++ b/software/libunwind/Makefile @@ -3,7 +3,7 @@ include $(MSCDIR)/software/common.mak COMMONFLAGS+=-integrated-as \ -I. -I$(MSCDIR)/software/include/dyld/ -I$(MSCDIR)/software/unwinder/include/ \ - -D__ELF__ -D__linux__ + -D__ELF__ -D__linux__ -D_LIBUNWIND_NO_HEAP OBJECTS=UnwindRegistersSave.o UnwindRegistersRestore.o UnwindLevel1.o libunwind.o diff --git a/software/unwinder b/software/unwinder index 70a7d2ad..2f26626b 160000 --- a/software/unwinder +++ b/software/unwinder @@ -1 +1 @@ -Subproject commit 70a7d2ad43da6ebf9113b0101bfd4b202e0c7b6b +Subproject commit 2f26626b6bdc17a2fcb0aeec7a9135d0c7409661 -- 2.30.2