Re: [PATCH] PE/COFF: Implement visibility attribute via .drectve
Jonathan Yong <[email protected]> Fri, 7 Aug 2026 05:55:43 +0000
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <[email protected]> |
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.