ติดตั้ง objdump (unix based)
- by Nat
จะใช้งาน objdump แต่หาคำสั่งนี้ไม่เจอ เลยไปสืบค้นแล้วพบว่าต้องติดตั้ง binutils (o
ก็เลยจัดการติดตั้งด้วยคำสั่งbjdump is part of binutils. )sudo port -v install binutilsพอติดตั้งเสร็จก็ยังสั่ง objdump ไม่ได้ เลยลองค้นหาด้วยคำสั่ง
sudo find / -name “objdu*” -print
แล้วพบว่ามันอยู่ที่
/opt/local/i386-apple-darwin9.8.0/bin/objdump /opt/local/var/macports/software/binutils/2.20_1/opt/local/i386-apple-darwin9.8.0/bin/objdump
เลยลองสั่ง
opt/local/i386-apple-darwin9.8.0/bin/objdump
แก้ไข .profile เพื่อให้สามารถสั่ง objdump ได้เลย โดยเพิ่ม
export PATH=/opt/local/i386-apple-darwin9.8.0/bin:$PATHแล้วลองสั่ง objdump จะได้ประมาณ
inazts-macbook:~ NAzT$ objdump Usage: 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 -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[lLiaprmfFsoR] or –dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=str,=loc,=Ranges] 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อ้างอิงคำสั่งจาก http://osxbook.com/book/bonus/ancient/whatismacosx/tools.html
Related Blogs
- » Learning to use CSS and DIV Tags for Columns in Dreamweaver
- Binutils Porting Guide To A New Target Architecture – LINUX For …
- China Trade Information » PwC poll: Local banks pose stiffer …
- Apple Darwin 8.01 [VMWare Images]
- Opera Finds Flash Unappetizing For Web Video [Blockquote] | Gadget …
- Nibbles microblog » ldd(1) is good but objdump(1) is better
- HTML Pro Series Tutorial – #1 Working With DIV & Setting Up | HTML …
- While Seeking For Health Insurance Quotes « Best Information …
- Advance band div coding video 2 | geeksonsteroids.us
- Opera Finds Flash Unappetizing For Web Video [Blockquote]
- Has anyone used the program File Finder to recover files? |
- ??????? objdump (unix based) « NAzT's Blog
- Are You Giving Out Too Much Information On Facebook? – TechnoBuffalo
- Opera Finds Flash Unappetizing For Web Video [Blockquote …
- Pakistani President Says that Osama Bin Laden May be Dead …
- SLAM ONLINE | » Nate Robinson Might File A Grievance
- We Are Nashville | Section 303
- travel advice for egypt | Travel Information – Airfare – Hotels …
- How has the cricket section managed to become the battlefield …
- Shore housing market suffers – Cherry Hill Courier Post | Real …
เรื่องที่เกี่ยวข้อง