On Sat, 27 Apr 2024, LIU Hao wrote:
在 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`.
No, if this is used when linking a DLL, it does not export both names, it
only exports "foo".
I don't mind the casual use of "alias" for these purposes for how we
normally use it - but I agree that saying "==" defines an alias, is
incorrect.
Anyway, I tried to clarify this bit in the commit messages (and fix a few
other bits); I'll re-send the whole set of patches to the list before
pushing.
// Martin
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public