diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-01-29 22:39:21 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-01-29 22:39:21 +0000 |
commit | 5da470b2bb32ad73eeef6cf9fb2b3bc8b12482ee (patch) | |
tree | 7be96a61c6a6c4d420db97ebf7b23ade677ee52d /binutils/objcopy.1 | |
parent | 3e78d072415b4f1f916fc09afdfd27fb16a9804a (diff) | |
download | gdb-5da470b2bb32ad73eeef6cf9fb2b3bc8b12482ee.zip gdb-5da470b2bb32ad73eeef6cf9fb2b3bc8b12482ee.tar.gz gdb-5da470b2bb32ad73eeef6cf9fb2b3bc8b12482ee.tar.bz2 |
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.
Diffstat (limited to 'binutils/objcopy.1')
-rw-r--r-- | binutils/objcopy.1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/objcopy.1 b/binutils/objcopy.1 index c2d5c5c..3276b17 100644 --- a/binutils/objcopy.1 +++ b/binutils/objcopy.1 @@ -39,6 +39,7 @@ objcopy \- copy and translate object files .RB "[\|" \-\-no\-adjust\-warnings\fR "\|]" .RB "[\|" \-\-set\-section\-flags=\fIsection=flags\fR "\|]" .RB "[\|" \-\-add\-section=\fIsectionname=filename\fR "\|]" +.RB "[\|" \-\-remove\-leading\-char\fR "\|]" .RB "[\|" \-v\ |\ \-\-verbose\fR "\|]" .RB "[\|" \-V\ |\ \-\-version\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 names. .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 Verbose output: list all object files modified. In the case of archives, "\fBobjcopy \-V\fR" lists all members of the archive. |