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
それを解決する方法は?