[patch]: dllwrap ported for x64 and support for new --[no-]leading-underscore option
Kai Tietz
ktietz70@googlemail.com
Thu Oct 29 20:03:00 GMT 2009
Hello all,
To make port of binutils tools a bit more complete for x64 Windows,
the dllwrap tool had some issues this patch fixes. Also it allows now
the --[no-}leading-underscore options, too. I am not sure, if this
tool is very useful for people in general, but I see that its main-use
seems to be for x86 cygwin and mingw toolchains. I extended it, so
that it can make a difference between different architectures. This is
mainly necessary for the @<n> post-fix, which has a meaning just for
x86 AFAIU.
2009-10-29 Kai Tietz <kai.tietz@onevision.com>
* dllwrap.c (is_leading_underscore): New variable.
(host_type): New enum type.
(which_host): New variable.
(usage): Add new options --no-leading-underscore
and --leading-underscore.
(long_options): Likewise.
(OPTION_NO_LEADING_UNDERSCORE): New define.
(OPTION_LEADING_UNDERSCORE): Likewise.
(main): Initialize which_host, pass new options
to dlltool, do underscoring dependent to
is_leading_underscore, and do '@12' decoration
only for x86.
Tested for x86_64-pc-mingw32, i686-pc-mingw32, and for i686-cygwin. Ok
for apply?
Cheers,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dllwrap_x64.diff
Type: application/octet-stream
Size: 4480 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20091029/6d98afb4/attachment.obj>
More information about the Binutils
mailing list