You copied the Doc URL to your clipboard.


Specifies the name of the output file, or the name of the output directory if multiple output files are created.



--o destination

Where destination can be either a file or a directory. For example:


is the name of an output file


is the name of an output directory.


Usage with --bin or --elf:

  • You can specify a single input file and a single output filename.

  • If you specify many input files and use --elf, you can use --in_place to write the output of processing each file over the top of the input file.

  • If you specify many input filenames and specify an output directory, then the output from processing each file is written into the output directory. Each output filename is derived from the corresponding input file. Therefore, specifying an output directory in this way is the only method of converting many ELF files to a binary or hexadecimal format in a single run of fromelf.

  • If you specify an archive file as the input, then the output file is also an archive. For example, the following command creates an archive file called output.o:

    fromelf --elf --strip=debug archive.a --output=output.o
  • If you specify a pattern in parentheses to select a subset of objects from an archive, fromelf only converts the subset. All the other objects are passed through to the output archive unchanged.