For more information on binutils, see Using binutils in GNUPro Utilities.
The most important of these utilities are objcopy and objdump.
S-records are suitable both for building ROM images for standalone boards and for downloading images to embedded systems. Use the following example’s input for this process.
objcopy -O srec infile outfileinfile in the previous example’s input is the executable binary filename, and outfile is the filename for the S-record.
Most PROM burners also read S-records or some similar format. Use the following example’s input to get a list of supported object file types for your architecture.
objdump -iFor more information on S-records, see the discussions for FORMAT output-format in MRI compatible script files and the general discussion of BFD in Using ld in GNUPro Utilities. For more discussion of making an executable binary image, see objcopy in Using binutils in GNUPro Utilities. objdump
When specifying archives,
objdump
shows information on each of the member object files. objfile...
are the object files to be examined. See objdump
utility in
Using binutils
in GNUPro Utilities.