patch add mini backtrace (#416)

* support rust panic backtrace

mini-backtrace has llvm's unwind cpp source to support backtrace/unwind.
as unwind/backtrace needs dynamically allocates memory, mini-backtrace
uses stack memory to capture fixed number of backtrace to avoid heap
allocation.
as unwind library needed, it needs to turn on eh_frame_hdr

* 修改忘了生成kernel.elf的问题

* 设置backtrace是默认的feature

---------

Co-authored-by: Yao Zhao <dragonlinux@gmail.com>
This commit is contained in:
LoGin
2023-11-01 22:12:19 +08:00
committed by GitHub
parent 8b3d1688da
commit d470019b1e
7 changed files with 83 additions and 14 deletions

View File

@ -64,6 +64,21 @@ install_ubuntu_debian_pkg()
}
install_archlinux_pkg()
{
pkgman="pacman"
echo "检测到 ArchLinux"
echo "正在更新包管理器的列表..."
sudo "${pkgman}" -Sy
echo "正在安装所需的包..."
sudo "${pkgman}" -S --needed --noconfirm \
curl wget bridge-utils dnsmasq \
diffutils pkgconf which unzip util-linux dosfstools \
gcc make flex texinfo gmp mpfr qemu-base \
libmpc libssl-dev
}
install_osx_pkg()
{
echo "Detected OSX! 暂不支持Mac OSX的一键安装"
@ -194,7 +209,7 @@ else
solus "$emulator" || exit 1
# Arch linux
elif hash 2>/dev/null pacman; then
archLinux "$emulator" || exit 1
install_archlinux_pkg || exit 1
# FreeBSD
elif hash 2>/dev/null pkg; then
freebsd "$emulator" || exit 1
@ -221,4 +236,4 @@ USR=$USER
sudo adduser $USR kvm
sudo chown $USR /dev/kvm
congratulations
congratulations