8a9eab9b5e
* 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-15 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.
20 lines
231 B
C
20 lines
231 B
C
void
|
|
__cdecl
|
|
lib2foocdecl(int junk1, int* junk2)
|
|
{
|
|
*junk2 = junk1;
|
|
}
|
|
|
|
void
|
|
__stdcall
|
|
lib2foostdcall(int junk1, int* junk2)
|
|
{
|
|
*junk2 = junk1;
|
|
}
|
|
|
|
void
|
|
__fastcall
|
|
lib2foofastcall(int junk1, int* junk2)
|
|
{
|
|
*junk2 = junk1;
|
|
}
|