On 7/31/26 20:08, Oleg Tolmatcev wrote:
On PE/COFF targets (MinGW, Cygwin), the visibility attribute was previously ignored with a warning. This patch makes it functional by emitting -exclude-symbols directives into the .drectve section, matching Clang's behavior. The GNU linker already reads and respects these directives during auto-export, so hidden/internal symbols are now correctly excluded from DLL exports.
Please also test for __stdcall and __fastcall for x86 32-bit targets and improve testcase to cover it.
Thanks.
