[patch]: fastcall/stdcall and import libraries in ld

Kai Tietz ktietz70@googlemail.com
Sat Nov 14 11:04:00 GMT 2009


2009/11/13 Kai Tietz <ktietz70@googlemail.com>:
> Hi Dave,
>
> I adjusted the patch and add testcase for it.
>
> ChangLog for ld
>
> 2009-11-13  Kai Tietz  <kai.tietz@onevision.com>
>
>        * pe-dll.c (pe_undef_alias_cdecl_match): New function.
>        (pe_find_cdecl_alias_match): New function.
>        (pe_process_import_defs): Add matching for import symbols
>        declared as cdecl for fastcall/stdcall.
>        * emultempl/pe.em (pe_undef_cdecl_match): Treat fastcall
>        symbols, too.
>        (pe_fixup_stdcalls): Likewise.
>        (gld_XXX_after_open): Redo scanning for imported
>        fastcall/stdcall symbols as cdecl one.
>        * emultempl/pep.em (pep_undef_cdecl_match): Treat fastcall
>        symbols, too.
>        (pep_fixup_stdcalls): Likewise.
>        (gld_XXX_after_open): Redo scanning for imported
>        fastcall/stdcall symbols as cdecl one.
>
> 2009-11-13  Kai Tietz  <kai.tietz@onevision.com>
>
>        * ld-pe/direct2_client.c: New file.
>        * ld-pe/direct2_dll.c: Likewise.
>        * ld-pe/direct2_dll.def: Likewise.
>        * ld-pe/pe-run2.exp: Likewise.
>
>
> Tested for i686-pc-mingw32, x86_64-pc-mingw32, and i686-pc-cygwin. Ok for apply?

I attached old patch file (was a typo in pep.em). So here is the current one.

Kai


(For Kai's diary: Never change a minor thing after testing a patch)
-- 
|  (\_/) 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: fastcall.diff
Type: application/octet-stream
Size: 13041 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20091114/a76799dd/attachment.obj>


More information about the Binutils mailing list