在 2024-04-27 19:46, Pali Rohár 写道:
Symbol alias is defined by "==".

This message is incorrect. `=` really defines an alias [1]. `==` specifies the export name (the name before `==` is used by the linker).

For an import library, there is likely no difference. The difference arises when building a DLL with this DEF file:

  * `foo = bar` (aliasing) indicates that a function called `bar` exists in the
    DLL's source code, and it is exported both as `foo` and `bar`. In the case 
of
    x86 stdcall, both `foo` and `bar` shall include an `@` suffix.

  * `foo == bar` (renaming) indicates that a function called `foo` exists in the
    DLL's source code, and it is exported as `bar`. `bar` may and may not 
contain
    an `@` suffix, as the use varies.


[1] https://sourceware.org/binutils/docs/binutils/def-file-format.html


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to