- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 使用 LD_DEBUG
可以用来调试程序,查看信息。暂且记下。LD_DEBUG=help lsValid options for the LD_DEBUG environment variable are: libs display library search paths reloc display relocation processing files d
2014-03-29 09:18:17 2274
转载 QEMU 的 CPU 配置
根据前面描述 CPU 的基本知识, 可以知道 CPU 有物理 CPU, 多核 CPU, 超线程 CPU 之分.事实上, QEMU 支持所有这些配置, 下面一一举例来说明如何模拟这些 CPU.基本的 CPU 模拟下面的指令模拟了一个具有 1 个物理 CPU, 两个逻辑 CPU 的系统$ qemu -enable-kvm -m 1024 ArchLinux.im
2014-03-29 03:45:25 9164 2
原创 ARM-v7a 上, backtrace()没有输出
要加 -funwind-tables参数才有输出,但还是不完整。./backtrace(add+0x3c)[0x8900]./backtrace(foo+0x34)[0x898c]有个帖子说,加上 -finstrument-function 可以输出完成的backtrace,但是我试了没有效果。http://uclibc.10924.n7.nabble.com/backtrace-n
2014-03-20 07:03:01 5757 1
原创 RPC support for modern (e)glibc toolchains
编译 busybox的时候,提示错误: make CC networking/inetd.onetworking/inetd.c:178:22: fatal error: rpc/rpc.h: No such file or directory # include 到 {SYSROOT}/usr/include 下搜索了下,确实没有这个文件。网上查到了相关的信息:
2014-03-20 04:06:44 4378 1
原创 建立 ARM GCC 工具链
1. 下载代码如下:binutils-2.24.tar.bz2 glibc-2.17.tar linux-3.10.28.targcc-4.8.0.tar.bz2 glibc-2.19.tar.bz22. 编译 binutils把 binutls 代码解压到 src 目录下, 同时在 build 目录下建立 binutil 目录。在 build/binu
2014-03-15 16:00:50 2497
转载 ARM GCC Inline Assembler Cookbook
About this documentThe GNU C compiler for ARM RISC processors offers, to embed assembly language code into C programs. This cool feature may be used for manually optimizing time critical parts of th
2014-03-12 22:58:49 1375
原创 编译 ARM 上的 GDB
下载得到 GDB 代码,进行如下配置:./configure --build=i686-pc-linux-gnu --host=arm-linux-gnueabi编译的时候,会报找不到 termcap 库的错误。因为是在编译 arm上的 gdb,所以无法通过 aptitude 安装 termcap 库, 只能交叉编译一个 arm的 termcap库。首先下载 termcap
2014-03-10 03:16:01 1009
转载 Configure with Build, Host and Target
--host: In which system the generated program will run.--build: In which system the program will be built.--target: this option is only used to build a cross-compiling toolchain. When the tool chain g
2014-03-10 01:18:54 1084
转载 Remove Old Kernels In Ubuntu With One Command
A while back I wrote a post on how to remove old kernels from your Ubuntu system. While that process works just fine, it is a four step process. One person who read that post left a comment with a n
2014-03-01 14:48:15 1317
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人