4.4.1. Converting ELF images to other formats

The ARM fromelf utility translates Executable Linkable Format (ELF) image files produced by the ARM linker into other formats suited to ROM tools and to loading directly into memory. See the RealView Compilation Tools Linker and Utilities Guide for more information on using fromelf, including information on output formats. To configure Eclipse to create a plain binary file from an executable ELF image:

  1. Go to the build configuration panel for your project. See Accessing configuration panels.

  2. Click the Build Steps tab in the C/C++ Build panel.

  3. In the Command text box of the Post-build step, enter fromelf --bin --output output.bin inputfile.axf, where inputfile is the name of the executable ELF image. See Figure 4.2.

  4. The binary file gets created when you build the project. The binary file is saved as output.bin in the sub-directory for the active build configuration, for example Debug.

    Figure 4.2. Calling fromelf from Eclipse

    Calling fromelf from Eclipse
Copyright © 2006 ARM Limited. All rights reserved.ARM DUI 0330A
Non-Confidential