mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
Added --prefix-symbols <prefix> option to rename all symbols by adding the
given prefix to the begining of the symbol name. This is useful to provide name space seperation regardless of how the object file was created. Added --prefix-sections <prefix> and --prefix-alloc-sections <prefix> options to rename all sections (or all sections with the alloc flag set) by adding the given prefix to the begining of the symbol name.
This commit is contained in:
@@ -960,6 +960,9 @@ objcopy [@option{-F} @var{bfdname}|@option{--target=}@var{bfdname}]
|
||||
[@option{--localize-symbols=}@var{filename}]
|
||||
[@option{--weaken-symbols=}@var{filename}]
|
||||
[@option{--alt-machine-code=@var{index}}]
|
||||
[@option{--prefix-symbols=@var{string}]
|
||||
[@option{--prefix-sections=@var{string}]
|
||||
[@option{--prefix-alloc-sections=@var{string}]
|
||||
[@option{-v}|@option{--verbose}]
|
||||
[@option{-V}|@option{--version}]
|
||||
[@option{--help}]
|
||||
@@ -1319,6 +1322,16 @@ 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 --prefix-symbols=@var{string}
|
||||
Prefix all symbols in the output file with @var{string}.
|
||||
|
||||
@item --prefix-sections=@var{string}
|
||||
Prefix all section names in the output file with @var{string}.
|
||||
|
||||
@item --prefix-alloc-sections=@var{string}
|
||||
Prefix all the names of all allocated sections in the output file with
|
||||
@var{string}.
|
||||
|
||||
@item -V
|
||||
@itemx --version
|
||||
Show the version number of @command{objcopy}.
|
||||
|
||||
Reference in New Issue
Block a user