Hello World C ファイルをコンパイルしましたが、必要なセクションは 1 つだけです (hello world 関数のみ)。
コンパイルされたファイルの形式は elf32-i386 で、次の 4 つのセクションが含まれ.rodata
て.text.hello
い.comment
ます.eh_frame
。
objcopy を使用して.text.hello
セクションのみを抽出しようとしました: http://www.thegeekstuff.com/2013/01/objcopy-examples/ example 3.
失敗し、次のように報告します。
BFD: hello_new: symbol `.rodata' required but not present
objcopy:hello_new: No symbols
それを解決する方法は?