This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello, this patch extends dlltool by the capability to allow to export/import an function as symbol by a different name. It allows that a symbol 'foo' is exported/imported from an inport/export table name 'bar'. This is an extension, as current implementation just allows to rename an to be exported symbol. For example: 'foo = bar' means that the internal symbol 'bar' in library is exported as 'foo' (with _imp__foo) in to be generated dll and the export/import table name is 'foo'. The new syntax 'foo = bar == doo' means that the internal symbol 'bar' in library is exported as 'foo' (with _imp__foo) in to be generated dll and the export/import table name is 'doo'. 2009-10-21 Kai Tietz <kai.tietz@onevision.com> * defparse.y (EQUAL): New token constant. (opt_import_name): New rule for emptry or '==' ID. (expline): Add opt_import_name as last line element. (impline): Likewise. * dlltool.c (ifunct): New member its_name. (export): Likewise. (append_import): Add its_name argument. (defexports): Likewise. (defimport): Likewise. (scan_drectve_symbols): Adjust calls to def_exports. (dump_def_info): Print new optinal import/export table symbol name. (generate_idata_ofile): Use its_name member. (make_one_lib_file): Likewise. (nfunc): Take its_name in account on sort. * dlltool.h (def_exports): Add its_name as argument. (def_import): Likewise. * doc/binutils.texi: Add new def file syntax extension. * deflex.l (EQUAL): Add rule for '=='. 2009-10-21 Kai Tietz <kai.tietz@onevision.com> * binutils-all/dlltool.exp: Add new test. * binutils-all/alias-2.def: New file. Patch is tested for x86_64-pc-mingw32, i686-pc-cygwin, and i686-pc-mingw32. Ok to apply on trunk? Cheers, Kai -- | (\_/) This is Bunny. Copy and paste | (='.'=) Bunny into your signature to help | (")_(") him gain world domination
Attachment:
dlltool_alias.diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |