[toolchains]-ARM ToolChains介绍
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                [toolchains]-ARM ToolChains介绍
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                ★★★個人博客導讀首頁—點擊此處 ★★★
目錄
- 1、toolchains版本的介紹
 - 2、toolchains中的命令介紹
 - 3、objdump的詳細使用
 
★★★ 友情鏈接 : 個人博客導讀首頁—點擊此處 ★★★
1、toolchains版本的介紹
在linaro官網有眾多toolchains的版本,目前比較常用的是4.9-2016.02
Parent Directory folder 4.9-2016.02 - folder 4.9-2017.01 - folder 5.1-2015.08 - folder 5.2-2015.11 - folder 5.2-2015.11-1 - folder 5.2-2015.11-2 - folder 5.3-2016.02 - folder 5.3-2016.05 - folder 5.4-2017.01 - folder 5.4-2017.05 - folder 5.5-2017.10 - folder 6.1-2016.08 - folder 6.2-2016.11 - folder 6.3-2017.02 - folder 6.3-2017.05 - folder 6.4-2017.08 - folder 6.4-2017.11 - folder 6.4-2018.05 - folder 6.5-2018.12 - folder 7.1-2017.05 - folder 7.1-2017.08 - folder 7.2-2017.11 - folder 7.3-2018.05 - folder 7.4-2019.02 - folder 7.5-2019.12比如我們選擇4.9-2016.02這個版本查看
 https://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/
arm開頭的是arm32使用的,aarch64開頭的是arm64使用的,帶hf的是支持浮點型的
-  
aarch64-linux-gnu
 -  
arm-linux-gnueabi
 -  
arm-linux-gnueabihf
 
2、toolchains中的命令介紹
toolchains支持眾多命令,列舉如下:
gcc-linaro-4.9-2015.02-3-x86_64_aarch64-linux-gnu/bin$ ls aarch64-linux-gnu-addr2line aarch64-linux-gnu-cpp aarch64-linux-gnu-gcc-ar aarch64-linux-gnu-gfortran aarch64-linux-gnu-objcopy aarch64-linux-gnu-strings aarch64-linux-gnu-ar aarch64-linux-gnu-elfedit aarch64-linux-gnu-gcc-nm aarch64-linux-gnu-gprof aarch64-linux-gnu-objdump aarch64-linux-gnu-strip aarch64-linux-gnu-as aarch64-linux-gnu-g++ aarch64-linux-gnu-gcc-ranlib aarch64-linux-gnu-ld aarch64-linux-gnu-ranlib gdbserver aarch64-linux-gnu-c++ aarch64-linux-gnu-gcc aarch64-linux-gnu-gcov aarch64-linux-gnu-ld.bfd aarch64-linux-gnu-readelf runtest aarch64-linux-gnu-c++filt aarch64-linux-gnu-gcc-4.9.3 aarch64-linux-gnu-gdb aarch64-linux-gnu-nm aarch64-linux-gnu-size部分命令介紹:
- aarch64-linux-gnu-gcc 這就是交叉編譯器,將源文件編譯成elf可執行文件
 - aarch64-linux-gnu-strip 刪除elf中的符號表,生成干凈的可執行文件
 - aarch64-linux-gnu-objdump 將elf文件反匯編,輸出dump文件
 
3、objdump的詳細使用
查看help信息
bin$ ./aarch64-linux-gnu-objdump Usage: ./aarch64-linux-gnu-objdump <option(s)> <file(s)>Display information from object <file(s)>.At least one of the following switches must be given:-a, --archive-headers Display archive header information-f, --file-headers Display the contents of the overall file header-p, --private-headers Display object format specific file header contents-P, --private=OPT,OPT... Display object format specific contents-h, --[section-]headers Display the contents of the section headers-x, --all-headers Display the contents of all headers-d, --disassemble Display assembler contents of executable sections-D, --disassemble-all Display assembler contents of all sections-S, --source Intermix source code with disassembly-s, --full-contents Display the full contents of all sections requested-g, --debugging Display debug information in object file-e, --debugging-tags Display debug information using ctags style-G, --stabs Display (in raw form) any STABS info in the file-W[lLiaprmfFsoRt] or--dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=gdb_index,=trace_info,=trace_abbrev,=trace_aranges,=addr,=cu_index]Display DWARF info in the file-t, --syms Display the contents of the symbol table(s)-T, --dynamic-syms Display the contents of the dynamic symbol table-r, --reloc Display the relocation entries in the file-R, --dynamic-reloc Display the dynamic relocation entries in the file@<file> Read options from <file>-v, --version Display this program's version number-i, --info List object formats and architectures supported-H, --help Display this information總結
以上是生活随笔為你收集整理的[toolchains]-ARM ToolChains介绍的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: [ATF]-TEE/REE系统切换时AT
 - 下一篇: linux kernel内存管理学习篇