3.4.27 O: Specify Output File
The -o
option specifies the base name and directory of
the output file.
The option -o main.elf
, for example, will place the
generated output in a file called main.elf. The name of an existing
directory can be specified with the file name, for example -o
build/main.elf
, so that the output file will appear in that directory.
You cannot use this option to change the type (format) of the output file.
Only the base name of the file specified with this option has significance. You cannot use this option to change the extension of an output file.