gnu binutils
ar ..
as ..
http://d.hatena.ne.jp/toshi_hirasawa/20120205/1328414002
as xxxx.S しゅつりょくはa.outになる
as -o xxxx.o xxxx.S 出力ファイルの指定
as -a xxxx.S アセンブリリストを出力
as -a=yyyy xxxx.S アセンブリリストをyyyyに出力
ld ..
ld -v で binutilesのバージョンがわかる
(gcc のバージョンはgcc -version
ld --verbose
ld --verbose -m i386linux
http://d.hatena.ne.jp/toshi_hirasawa/20120206/1328481598
nm ..
objcopy ..
objdump ..
objdump -i
http://d.hatena.ne.jp/toshi_hirasawa/20120206/1328527682
ranlib ..
readlelf ..
size ..
strip ..
strip -s remove symbol
strip -R see example
http://d.hatena.ne.jp/toshi_hirasawa/20120204/1328349784
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
elf ファイルの並べの順番は
elf-header
prog-header
sections
section-header
readelf command
-h show elf-header
-l show program-header
-S show section-header
-x dump section
( use numenic as section number to specify. Use -S to find list)
objdump command
-
-
- first thing to do
-
-h show sections list
-
-
- next step to do
-
-s dump session(s)
-d reverse-assy
-j specify section-name
ex) objdump -s -j .text -d hello.o
size command
no-arg
-A list section headers
nm command
-g show global-symbols list
Linux/GNU 開発環境の確認方法
とかのキーワードでぐぐると
http://memo.wnishida.com/?date=20080304
がヒットしたw