Update libunwind submodule.
authorwhitequark <whitequark@whitequark.org>
Thu, 30 Jul 2015 23:35:30 +0000 (02:35 +0300)
committerwhitequark <whitequark@whitequark.org>
Thu, 30 Jul 2015 23:38:38 +0000 (02:38 +0300)
software/libbase/Makefile
software/libbase/environ.c [deleted file]
software/libunwind/Makefile
software/unwinder

index 35f92f659dcfd119ff270eca411d16dd0b37e547..c1f2434dfcad16a3fc1e19062bea5614087c9b2d 100644 (file)
@@ -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 (file)
index 2c2c92f..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <stdlib.h>
-#include <string.h>
-
-char *getenv(const char *varname) {
-  if(!strcmp(varname, "LIBUNWIND_PRINT_APIS") ||
-     !strcmp(varname, "LIBUNWIND_PRINT_UNWINDING")) {
-    return "1";
-  } else {
-    return NULL;
-  }
-}
index f250db79d273f0945f360e8287d2dfe095b7e23b..899eff4346ece475e20eb345bc389df6cbcfd0f2 100644 (file)
@@ -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
 
index 70a7d2ad43da6ebf9113b0101bfd4b202e0c7b6b..2f26626b6bdc17a2fcb0aeec7a9135d0c7409661 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 70a7d2ad43da6ebf9113b0101bfd4b202e0c7b6b
+Subproject commit 2f26626b6bdc17a2fcb0aeec7a9135d0c7409661