Based on patches from H J Lu <hjl@zoom.com>:
* objcopy.c (remove_leading_char): New static variable. (OPTION_REMOVE_LEADING_CHAR): Define. (copy_usage): Mention --remove-leading-char. (filter_symbols): If remove_leading_char, and the first character of a global symbol matches the symbol leading char of the BFD, remove the first character. (copy_object): Filter the symbols if remove_leading_char is set. (copy_main): Handle --remove-leading-char. * binutils.texi, objcopy.1: Document --remove-leading-char.
This commit is contained in:
parent
3e78d07241
commit
5da470b2bb
3 changed files with 36 additions and 0 deletions
|
@ -1,3 +1,21 @@
|
||||||
|
Mon Jan 29 17:36:29 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
Based on patches from H J Lu <hjl@zoom.com>:
|
||||||
|
* objcopy.c (remove_leading_char): New static variable.
|
||||||
|
(OPTION_REMOVE_LEADING_CHAR): Define.
|
||||||
|
(copy_usage): Mention --remove-leading-char.
|
||||||
|
(filter_symbols): If remove_leading_char, and the first character
|
||||||
|
of a global symbol matches the symbol leading char of the BFD,
|
||||||
|
remove the first character.
|
||||||
|
(copy_object): Filter the symbols if remove_leading_char is set.
|
||||||
|
(copy_main): Handle --remove-leading-char.
|
||||||
|
* binutils.texi, objcopy.1: Document --remove-leading-char.
|
||||||
|
|
||||||
|
Sat Jan 27 15:40:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||||
|
|
||||||
|
* objdump.c (fprintf): Add prototype to avoid compiler warning on
|
||||||
|
SunOS.
|
||||||
|
|
||||||
Fri Jan 26 11:53:42 1996 Ian Lance Taylor <ian@cygnus.com>
|
Fri Jan 26 11:53:42 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* binutils.texi (nm): Improve documentation on symbol types.
|
* binutils.texi (nm): Improve documentation on symbol types.
|
||||||
|
|
|
@ -807,6 +807,7 @@ objcopy [ -F @var{bfdname} | --target=@var{bfdname} ]
|
||||||
[ --adjust-warnings ] [ --no-adjust-warnings ]
|
[ --adjust-warnings ] [ --no-adjust-warnings ]
|
||||||
[ --set-section-flags=@var{section}=@var{flags} ]
|
[ --set-section-flags=@var{section}=@var{flags} ]
|
||||||
[ --add-section=@var{sectionname}=@var{filename} ]
|
[ --add-section=@var{sectionname}=@var{filename} ]
|
||||||
|
[ --remove-leading-char ]
|
||||||
[ -v | --verbose ] [ -V | --version ] [ --help ]
|
[ -v | --verbose ] [ -V | --version ] [ --help ]
|
||||||
@var{infile} [@var{outfile}]
|
@var{infile} [@var{outfile}]
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
@ -976,6 +977,14 @@ contents of the new section are taken from the file @var{filename}. The
|
||||||
size of the section will be the size of the file. This option only
|
size of the section will be the size of the file. This option only
|
||||||
works on file formats which can support sections with arbitrary names.
|
works on file formats which can support sections with arbitrary names.
|
||||||
|
|
||||||
|
@item --remove-leading-char
|
||||||
|
If the first character of a global symbol is a special symbol leading
|
||||||
|
character used by the object file format, remove the character. The
|
||||||
|
most common symbol leading character is underscore. This option will
|
||||||
|
remove a leading underscore from all global symbols. This can be useful
|
||||||
|
if you want to link together objects of different file formats with
|
||||||
|
different conventions for symbol names.
|
||||||
|
|
||||||
@item -V
|
@item -V
|
||||||
@itemx --version
|
@itemx --version
|
||||||
Show the version number of @code{objcopy}.
|
Show the version number of @code{objcopy}.
|
||||||
|
|
|
@ -39,6 +39,7 @@ objcopy \- copy and translate object files
|
||||||
.RB "[\|" \-\-no\-adjust\-warnings\fR "\|]"
|
.RB "[\|" \-\-no\-adjust\-warnings\fR "\|]"
|
||||||
.RB "[\|" \-\-set\-section\-flags=\fIsection=flags\fR "\|]"
|
.RB "[\|" \-\-set\-section\-flags=\fIsection=flags\fR "\|]"
|
||||||
.RB "[\|" \-\-add\-section=\fIsectionname=filename\fR "\|]"
|
.RB "[\|" \-\-add\-section=\fIsectionname=filename\fR "\|]"
|
||||||
|
.RB "[\|" \-\-remove\-leading\-char\fR "\|]"
|
||||||
.RB "[\|" \-v\ |\ \-\-verbose\fR "\|]"
|
.RB "[\|" \-v\ |\ \-\-verbose\fR "\|]"
|
||||||
.RB "[\|" \-V\ |\ \-\-version\fR "\|]"
|
.RB "[\|" \-V\ |\ \-\-version\fR "\|]"
|
||||||
.RB "[\|" \-\-help\fR "\|]"
|
.RB "[\|" \-\-help\fR "\|]"
|
||||||
|
@ -218,6 +219,14 @@ The size of the section will be the size of the file. This option
|
||||||
only works on file formats which can support sections with arbitrary
|
only works on file formats which can support sections with arbitrary
|
||||||
names.
|
names.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-\-remove\-leading\-char
|
||||||
|
If the first character of a global symbol is a special symbol leading
|
||||||
|
character used by the object file format, remove the character. The
|
||||||
|
most common symbol leading character is underscore. This option will
|
||||||
|
remove a leading underscore from all global symbols. This can be useful
|
||||||
|
if you want to link together objects of different file formats with
|
||||||
|
different conventions for symbol names.
|
||||||
|
.TP
|
||||||
.B \-v\fR, \fB\-\-verbose
|
.B \-v\fR, \fB\-\-verbose
|
||||||
Verbose output: list all object files modified. In the case of
|
Verbose output: list all object files modified. In the case of
|
||||||
archives, "\fBobjcopy \-V\fR" lists all members of the archive.
|
archives, "\fBobjcopy \-V\fR" lists all members of the archive.
|
||||||
|
|
Loading…
Reference in a new issue