forked from Imagelibrary/binutils-gdb
* objcopy.c (use_alt_mach_code): New variable.
(OPTION_ALT_MACH_CODE): Define. (copy_options): Added --alt-machine-code. (copy_main): Handle it. (copy_object): Switch to alternate machine code if requested. * doc/binutils.texi: Document new option. * NEWS: Likewise.
This commit is contained in:
@@ -954,6 +954,7 @@ objcopy [@option{-F} @var{bfdname}|@option{--target=}@var{bfdname}]
|
||||
[@option{--keep-global-symbols=}@var{filename}]
|
||||
[@option{--localize-symbols=}@var{filename}]
|
||||
[@option{--weaken-symbols=}@var{filename}]
|
||||
[@option{--alt-machine-code=@var{index}}]
|
||||
[@option{-v}|@option{--verbose}]
|
||||
[@option{-V}|@option{--version}]
|
||||
[@option{--help}]
|
||||
@@ -1306,6 +1307,13 @@ Apply @option{--weaken-symbol} option to each symbol listed in the file
|
||||
name per line. Line comments may be introduced by the hash character.
|
||||
This option may be given more than once.
|
||||
|
||||
@item --alt-machine-code=@var{index}
|
||||
If the output architecture has alternate machine codes, use the
|
||||
@var{index}th code instead of the default one. This is useful in case
|
||||
a machine is assigned an official code and the tool-chain adopts the
|
||||
new code, but other applications still depend on the original code
|
||||
being used.
|
||||
|
||||
@item -V
|
||||
@itemx --version
|
||||
Show the version number of @command{objcopy}.
|
||||
|
||||
Reference in New Issue
Block a user