.TH OBJCOPY 1 .SH NAME sdobjcopy \- copy and translate object files. A part of SDCC .SH SYNOPSIS .B sdobjcopy [\fI\,option(s)\/\fR] \fI\,in-file \/\fR[\fI\,out-file\/\fR] .SH DESCRIPTION .IP Copies a binary file, possibly transforming it in the process The options are: .TP \fB\-I\fR \fB\-\-input\-target\fR Assume input file is in format .TP \fB\-O\fR \fB\-\-output\-target\fR Create an output file in format .TP \fB\-B\fR \fB\-\-binary\-architecture\fR Set output arch, when input is arch\-less .TP \fB\-F\fR \fB\-\-target\fR Set both input and output format to .TP \fB\-\-debugging\fR Convert debugging information, if possible .TP \fB\-p\fR \fB\-\-preserve\-dates\fR Copy modified/access timestamps to the output .TP \fB\-D\fR \fB\-\-enable\-deterministic\-archives\fR Produce deterministic output when stripping archives .TP \fB\-U\fR \fB\-\-disable\-deterministic\-archives\fR Disable \fB\-D\fR behavior (default) .TP \fB\-j\fR \fB\-\-only\-section\fR Only copy section into the output .TP \fB\-\-add\-gnu\-debuglink=\fR Add section .gnu_debuglink linking to .TP \fB\-R\fR \fB\-\-remove\-section\fR Remove section from the output .TP \fB\-S\fR \fB\-\-strip\-all\fR Remove all symbol and relocation information .TP \fB\-g\fR \fB\-\-strip\-debug\fR Remove all debugging symbols & sections .TP \fB\-\-strip\-dwo\fR Remove all DWO sections .TP \fB\-\-strip\-unneeded\fR Remove all symbols not needed by relocations .TP \fB\-N\fR \fB\-\-strip\-symbol\fR Do not copy symbol .TP \fB\-\-strip\-unneeded\-symbol\fR Do not copy symbol unless needed by .IP relocations .TP \fB\-\-only\-keep\-debug\fR Strip everything but the debug information .TP \fB\-\-extract\-dwo\fR Copy only DWO sections .TP \fB\-\-extract\-symbol\fR Remove section contents but keep symbols .TP \fB\-K\fR \fB\-\-keep\-symbol\fR Do not strip symbol .TP \fB\-\-keep\-file\-symbols\fR Do not strip file symbol(s) .TP \fB\-\-localize\-hidden\fR Turn all ELF hidden symbols into locals .TP \fB\-L\fR \fB\-\-localize\-symbol\fR Force symbol to be marked as a local .TP \fB\-\-globalize\-symbol\fR Force symbol to be marked as a global .TP \fB\-G\fR \fB\-\-keep\-global\-symbol\fR Localize all symbols except .TP \fB\-W\fR \fB\-\-weaken\-symbol\fR Force symbol to be marked as a weak .TP \fB\-\-weaken\fR Force all global symbols to be marked as weak .TP \fB\-w\fR \fB\-\-wildcard\fR Permit wildcard in symbol comparison .TP \fB\-x\fR \fB\-\-discard\-all\fR Remove all non\-global symbols .TP \fB\-X\fR \fB\-\-discard\-locals\fR Remove any compiler\-generated symbols .TP \fB\-i\fR \fB\-\-interleave\fR [] Only copy N out of every bytes .TP \fB\-\-interleave\-width\fR Set N for \fB\-\-interleave\fR .TP \fB\-b\fR \fB\-\-byte\fR Select byte in every interleaved block .TP \fB\-\-gap\-fill\fR Fill gaps between sections with .TP \fB\-\-pad\-to\fR Pad the last section up to address .TP \fB\-\-set\-start\fR Set the start address to .TP {\-\-change\-start|\-\-adjust\-start} Add to the start address .TP {\-\-change\-addresses|\-\-adjust\-vma} Add to LMA, VMA and start addresses .TP {\-\-change\-section\-address|\-\-adjust\-section\-vma} {=|+|\-} Change LMA and VMA of section by .TP \fB\-\-change\-section\-lma\fR {=|+|\-} Change the LMA of section by .TP \fB\-\-change\-section\-vma\fR {=|+|\-} Change the VMA of section by .TP {\-\-[no\-]change\-warnings|\-\-[no\-]adjust\-warnings} Warn if a named section does not exist .TP \fB\-\-set\-section\-flags\fR = Set section 's properties to .TP \fB\-\-add\-section\fR = Add section found in to output .HP \fB\-\-rename\-section\fR =[,] Rename section to .TP \fB\-\-long\-section\-names\fR {enable|disable|keep} Handle long section names in Coff objects. .TP \fB\-\-change\-leading\-char\fR Force output format's leading character style .TP \fB\-\-remove\-leading\-char\fR Remove leading character from global symbols .TP \fB\-\-reverse\-bytes=\fR Reverse bytes at a time, in output sections with content .TP \fB\-\-redefine\-sym\fR = Redefine symbol name to .TP \fB\-\-redefine\-syms\fR \fB\-\-redefine\-sym\fR for all symbol pairs listed in .TP \fB\-\-srec\-len\fR Restrict the length of generated Srecords .TP \fB\-\-srec\-forceS3\fR Restrict the type of generated Srecords to S3 .HP \fB\-\-strip\-symbols\fR \fB\-N\fR for all symbols listed in .TP \fB\-\-strip\-unneeded\-symbols\fR \fB\-\-strip\-unneeded\-symbol\fR for all symbols listed .IP in .HP \fB\-\-keep\-symbols\fR \fB\-K\fR for all symbols listed in .HP \fB\-\-localize\-symbols\fR \fB\-L\fR for all symbols listed in .HP \fB\-\-globalize\-symbols\fR \fB\-\-globalize\-symbol\fR for all in .HP \fB\-\-keep\-global\-symbols\fR \fB\-G\fR for all symbols listed in .HP \fB\-\-weaken\-symbols\fR \fB\-W\fR for all symbols listed in .TP \fB\-\-alt\-machine\-code\fR Use the target's 'th alternative machine .TP \fB\-\-writable\-text\fR Mark the output text as writable .TP \fB\-\-readonly\-text\fR Make the output text write protected .TP \fB\-\-pure\fR Mark the output file as demand paged .TP \fB\-\-impure\fR Mark the output file as impure .TP \fB\-\-prefix\-symbols\fR Add to start of every symbol name .TP \fB\-\-prefix\-sections\fR Add to start of every section name .TP \fB\-\-prefix\-alloc\-sections\fR Add to start of every allocatable .IP section name .TP \fB\-\-file\-alignment\fR Set PE file alignment to .TP \fB\-\-heap\fR [,] Set PE reserve/commit heap to / .TP \fB\-\-image\-base\fR
Set PE image base to
.TP \fB\-\-section\-alignment\fR Set PE section alignment to .TP \fB\-\-stack\fR [,] Set PE reserve/commit stack to / .TP \fB\-\-subsystem\fR [:] Set PE subsystem to [& ] .TP \fB\-\-compress\-debug\-sections\fR Compress DWARF debug sections using zlib .TP \fB\-\-decompress\-debug\-sections\fR Decompress DWARF debug sections using zlib .TP \fB\-v\fR \fB\-\-verbose\fR List all object files modified .TP @ Read options from .TP \fB\-V\fR \fB\-\-version\fR Display this program's version number .TP \fB\-h\fR \fB\-\-help\fR Display this output .TP \fB\-\-info\fR List object formats & architectures supported .PP /usr/bin/sdobjcopy: supported targets: asxxxx srec symbolsrec binary ihex .SH "REPORTING BUGS" Report bugs to .SH COPYRIGHT Copyright 2012 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty. .SH "SEE ALSO" The full documentation for .B objcopy is maintained as a Texinfo manual. If the .B info and .B objcopy programs are properly installed at your site, the command .IP .B info objcopy .PP should give you access to the complete manual.