This option controls the generation of debug information in the output file. Debug information includes debug input sections and the symbol/string table.
--no_debug to exclude debug information
from the output file. The resulting ELF image is smaller, but you
cannot debug it at source level. The linker discards any debug input
section it finds in the input objects and library members, and does
not include the symbol and string table in the image. This only
affects the image size as loaded into the debugger. It has no effect
on the size of any resulting binary image that is downloaded to
If you are using
--partial the linker creates
a partially-linked object without any debug data.
Do not use
--no_debug if a fromelf
is required. If your image is produced without debug information, fromelf cannot:
translate the image into other file formats
produce a meaningful disassembly listing.