f78
The following are the binary utilities, although they are not included on all hosts: ar, nm, objcopy, objdump, ranlib, size, strings, and strip.
For more information on binutils, see The GNU Binary Utilities in GNUPro Utilities.
The most important of these utilities are objcopy and objdump.
objcopy
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.
objc ffb opy -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 Comaptible Files and the general discussion in BFD in Using LD in GNUPro Utilities. For more discussion of making an executable binary image, see objcopy in The GNU Binary Utilities 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.
A few of the more useful
options for commands are: -d,
-disassemble and
-prefix-addresses.