本文主要是介绍Linux - mipsel/mips/arm/armeb - gdb compile,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
If you don’t know what’s buildroot ?, please redirect to https://www.uclibc.org/
How to install buildroot
root@lab:~# uname -a
Linux lab 4.3.0-kali1-686-pae #1 SMP Debian 4.3.5-1kali1 (2016-02-11) i686 GNU/Linux
root@lab:~/Downloads# wget -c https://buildroot.uclibc.org/downloads/buildroot-snapshot.tar.bz2
root@lab:~/Downloads/buildroot# make menuconfig*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.root@lab:~/Downloads/buildroot# make
How to compile MIPSEL gdb
root@lab:~/Downloads# tar xvf gdb-7.11.tar.gz
root@lab:~/Downloads# cd gdb-7.11/
root@lab:~/Downloads/gdb-7.11# export PATH=$PATH:/root/Downloads/buildroot/output/host/usr/bin
root@lab:~/Downloads/gdb-7.11# ./configure --target=mipsel-linux --host=mipsel-linux --prefix=/root/Downloads/gdb-7.11/gdb_output --program-prefix=mips CC=/root/Downloads/buildroot/output/host/usr/bin/mipsel-linux-gcc CFLAGS="-g -O2 -static"
- mips compile
$ ./configure --target
这篇关于Linux - mipsel/mips/arm/armeb - gdb compile的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!