summaryrefslogtreecommitdiff
path: root/Kernel/Makefile
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-27 14:06:24 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-27 14:06:24 +0100
commit0adbacf59eca87b113ac731be7c136f6b0340a19 (patch)
tree34a1ea4b23123226057de456d5b2a9b8d6118eed /Kernel/Makefile
parent2d1bcce34af870228165a894d9e0200255ec1ba5 (diff)
downloadserenity-0adbacf59eca87b113ac731be7c136f6b0340a19.zip
Kernel: Demangle userspace ELF symbols in backtraces
Turns out we can use abi::__cxa_demangle() for this, and all we need to provide is sprintf(), realloc() and free(), so this patch exposes them. We now have fully demangled C++ backtraces :^)
Diffstat (limited to 'Kernel/Makefile')
-rw-r--r--Kernel/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Makefile b/Kernel/Makefile
index 01fd177929..b75072a25e 100644
--- a/Kernel/Makefile
+++ b/Kernel/Makefile
@@ -115,7 +115,7 @@ kernel.map: kernel
@echo "MKMAP $@"; sh mkmap.sh
$(KERNEL): $(OBJS)
- @echo "LD $@"; $(LD) $(LDFLAGS) -o $@ $(OBJS) -lgcc
+ @echo "LD $@"; $(LD) $(LDFLAGS) -o $@ $(OBJS) -lgcc -lstdc++
.cpp.o:
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<