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:
Nick Clifton 2002-12-13 13:19:44 +00:00
parent 4024f1e1c5
commit d7fb0dd217
4 changed files with 144 additions and 50 deletions

View file

@ -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}.