This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch]: Allow in dlltool addiional underscoring options for symbols
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Mon, 26 Oct 2009 19:28:20 +0100
- Subject: [patch]: Allow in dlltool addiional underscoring options for symbols
Hello,
as we are about to change for w64 the default underscoring, but as we
still are in need to support the underscored symbol variant, does this
patch adds two new options for this. The option is opaque as long as
not one of the two (--(no-)leading-underscore) options was specified.
ChangeLog
2009-10-26 Kai Tietz <kai.tietz@onevision.com>
* dlltoo.c (leading_underscore): New local variable.
(asm_prefix): Interprete leading_underscore.
(xlate): Likewise.
(add_excludes): Use leading_underscore for making
symbol name.
(gen_exp_file): Use leading_underscore for internal
_imp_ symbols.
(usage): Add display of --no-leading-underscore and
--leading-underscore option.
(OPTION_NO_LEADING_UNDERSCORE): New.
(OPTION_LEADING_UNDERSCORE): New.
(long_options): Add --no-leading-underscore and
--leading-underscore option.
(main): Handle new options.
* doc/binutils.text: Add documentation of the options
--no-leading-underscore and --leading-underscore.
Tested for x86_64-pc-mingw32, i686-pc-mingw32, and i686-pc-cygwin. Ok for apply?
Cheers,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination