读取分析elf文件的工具:(gcc编译的结果是elf,MDK编译的是axf)
root@ubuntu:/home/book/book777/little-fish# readelf headset_ref_design(2).elf -a | grep aec_ 8660: 00000000 0 FILE LOCAL DEFAULT ABS aec_api.c 8672: 00000000 0 FILE LOCAL DEFAULT ABS aec_kiss_fft.c 8684: 00000000 0 FILE LOCAL DEFAULT ABS aec_kiss_fftr.c 14929: 0809a4b9 16 FUNC LOCAL DEFAULT 1 __aec_new_veneer15094: 04011f49 16 FUNC LOCAL DEFAULT 8 __aec_filterbankComputePs16397: 0400b239 46 FUNC GLOBAL DEFAULT 8 aec_delete18097: 0400f0bd 44 FUNC GLOBAL DEFAULT 8 aec_run18701: 0400c969 2006 FUNC GLOBAL DEFAULT 8 aec_new 18802: 08060b89 66 FUNC GLOBAL DEFAULT 1 aec_filterbankDelete 18820: 0400ef6d 4 FUNC GLOBAL DEFAULT 8 aec_feed root@ubuntu:/home/book/book777/little-fish# readelf headset_ref_design(2).elf -l | more Elf file type is EXEC (Executable file) Entry point 0x8010001 There are 8 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align EXIDX 0x1316a8 0x000016a8 0x08131bc0 0x00008 0x00008 R 0x4 LOAD 0x008000 0x08010000 0x08010000 0x120518 0x120518 R E 0x8000 LOAD 0x130000 0x00000000 0x08130518 0x0991c 0x0d91c RWE 0x8000 LOAD 0x13d920 0x1000d920 0x08139e34 0x02904 0x02904 RW 0x8000 LOAD 0x148000 0x04008000 0x0813c738 0x0adcc 0x0adcc RWE 0x8000 LOAD 0x158228 0x10010228 0x0813c738 0x00000 0x2da550 RW 0x8000 LOAD 0x152dcc 0x04012dcc 0x08147504 0x00000 0x00a78 RW 0x8000 LOAD 0x153844 0x04013844 0x08147504 0x00000 0x01000 RW 0x8000 Section to Segment mapping: Segment Sections... 00 .ARM.exidx 01 .text 02 .ram_text .ARM.exidx .noncached_data .noncached_bss 03 .cached_data 04 .tcm 05 .bss 06 .tcm_bss 07 .stack
可视的git工具gitk,安装
sudo apt-get update sudo apt-get install git-all sudo apt-get install gitk
git init
git clone https://github.com/WM-CH/hello-world.git
cd hello-world
gitk 打开工具
.