This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using fromelf to extract binary sections

Hi,

I'm looking for some objcopy functionality in fromelf. Specifically I would like to extract two sections from an elf file and store them as binary file. objcopy does this with

> objcopy -O binary -j .text -j .data $(ELF_TARGET) textdata.bin

I don't need the ability to concatenate but I would like to extract sections by their name and then store them as binary files.

I hope you can help.

Regards,

Kilian

  • Answering my own question I have to mention that using multiple load regions in the scatter file will do the trick for me. The result is an output directory containing binary data for each load region.

    Regards,

    Kilian