mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-12 02:17:45 +08:00
* objcopy.c (redefine_list_append): Add an argument that
indicates the context from which this function is being called. Change all callers. (copy_options): Add a new option, --redefine-syms. (copy_usage): Document new option. (copy_main): Handle the --redefine-syms option. * doc/binutils.text (objcopy): Document new option.
This commit is contained in:
@ -958,6 +958,7 @@ objcopy [@option{-F} @var{bfdname}|@option{--target=}@var{bfdname}]
|
||||
[@option{--change-leading-char} ] [@option{--remove-leading-char}]
|
||||
[@option{--srec-len=}@var{ival} ] [@option{--srec-forceS3}]
|
||||
[@option{--redefine-sym} @var{old}=@var{new} ]
|
||||
[@option{--redefine-syms=}@var{filename} ]
|
||||
[@option{--weaken}]
|
||||
[@option{--keep-symbols=}@var{filename}]
|
||||
[@option{--strip-symbols=}@var{filename}]
|
||||
@ -1284,6 +1285,12 @@ Change the name of a symbol @var{old}, to @var{new}. This can be useful
|
||||
when one is trying link two things together for which you have no
|
||||
source, and there are name collisions.
|
||||
|
||||
@item --redefine-syms=@var{filename}
|
||||
Apply @option{--redefine-sym} to each symbol pair "@var{old} @var{new}"
|
||||
listed in the file @var{filename}. @var{filename} is simply a flat file,
|
||||
with one symbol pair per line. Line comments may be introduced by the hash
|
||||
character. This option may be given more than once.
|
||||
|
||||
@item --weaken
|
||||
Change all global symbols in the file to be weak. This can be useful
|
||||
when building an object which will be linked against other objects using
|
||||
|
Reference in New Issue
Block a user