DOKK / manpages / debian 11 / sdcc / sdobjcopy.1.en
OBJCOPY(1) General Commands Manual OBJCOPY(1)

sdobjcopy - copy and translate object files. A part of SDCC

sdobjcopy [option(s)] in-file [out-file]

Copies a binary file, possibly transforming it in the process The options are:
Assume input file is in format <bfdname>
Create an output file in format <bfdname>
Set output arch, when input is arch-less
Set both input and output format to <bfdname>
Convert debugging information, if possible
Copy modified/access timestamps to the output
Produce deterministic output when stripping archives
Disable -D behavior (default)
Only copy section <name> into the output
Add section .gnu_debuglink linking to <file>
Remove section <name> from the output
Remove all symbol and relocation information
Remove all debugging symbols & sections
Remove all DWO sections
Remove all symbols not needed by relocations
Do not copy symbol <name>
Do not copy symbol <name> unless needed by
relocations
Strip everything but the debug information
Copy only DWO sections
Remove section contents but keep symbols
Do not strip symbol <name>
Do not strip file symbol(s)
Turn all ELF hidden symbols into locals
Force symbol <name> to be marked as a local
Force symbol <name> to be marked as a global
Localize all symbols except <name>
Force symbol <name> to be marked as a weak
Force all global symbols to be marked as weak
Permit wildcard in symbol comparison
Remove all non-global symbols
Remove any compiler-generated symbols
Only copy N out of every <number> bytes
Set N for --interleave
Select byte <num> in every interleaved block
Fill gaps between sections with <val>
Pad the last section up to address <addr>
Set the start address to <addr>
{--change-start|--adjust-start} <incr>
Add <incr> to the start address
{--change-addresses|--adjust-vma} <incr>
Add <incr> to LMA, VMA and start addresses
{--change-section-address|--adjust-section-vma} <name>{=|+|-}<val>
Change LMA and VMA of section <name> by <val>
Change the LMA of section <name> by <val>
Change the VMA of section <name> by <val>
{--[no-]change-warnings|--[no-]adjust-warnings}
Warn if a named section does not exist
Set section <name>'s properties to <flags>
Add section <name> found in <file> to output

--rename-section <old>=<new>[,<flags>] Rename section <old> to <new>

Handle long section names in Coff objects.
Force output format's leading character style
Remove leading character from global symbols
Reverse <num> bytes at a time, in output sections with content
Redefine symbol name <old> to <new>
listed in <file>
Restrict the length of generated Srecords
Restrict the type of generated Srecords to S3

--strip-symbols <file> -N for all symbols listed in <file>

--strip-unneeded-symbol for all symbols listed
in <file>

--keep-symbols <file> -K for all symbols listed in <file>

--localize-symbols <file> -L for all symbols listed in <file>

--globalize-symbols <file> --globalize-symbol for all in <file>

--keep-global-symbols <file> -G for all symbols listed in <file>

--weaken-symbols <file> -W for all symbols listed in <file>

Use the target's <index>'th alternative machine
Mark the output text as writable
Make the output text write protected
Mark the output file as demand paged
Mark the output file as impure
Add <prefix> to start of every symbol name
Add <prefix> to start of every section name
Add <prefix> to start of every allocatable
section name
Set PE file alignment to <num>
Set PE reserve/commit heap to <reserve>/ <commit>
Set PE image base to <address>
Set PE section alignment to <num>
Set PE reserve/commit stack to <reserve>/ <commit>
Set PE subsystem to <name> [& <version>]
Compress DWARF debug sections using zlib
Decompress DWARF debug sections using zlib
List all object files modified
@<file>
Read options from <file>
Display this program's version number
Display this output
List object formats & architectures supported

/usr/bin/sdobjcopy: supported targets: asxxxx srec symbolsrec binary ihex

Report bugs to <http://sourceforge.net/tracker/?group_id=599@report_bugs_to@atid=100599>

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.

The full documentation for objcopy is maintained as a Texinfo manual. If the info and objcopy programs are properly installed at your site, the command

info objcopy

should give you access to the complete manual.