[Git][ghc/ghc][wip/bump-win32-tarballs] rts: Mark API set symbols as HIDDEN and correct symbol type

Tamar Christina pushed to branch wip/bump-win32-tarballs at Glasgow Haskell Compiler / GHC Commits: ac1780b6 by Tamar Christina at 2025-06-29T21:37:39+01:00 rts: Mark API set symbols as HIDDEN and correct symbol type - - - - - 1 changed file: - rts/linker/PEi386.c Changes: ===================================== rts/linker/PEi386.c ===================================== @@ -1174,8 +1174,10 @@ bool checkAndLoadImportLibrary( pathchar* arch_name, char* member_name, FILE* f // Because the symbol has been loaded before we actually need it, if a // stronger reference wants to add a duplicate we should discard this // one to preserve link order. - if (!ghciInsertSymbolTable(dll, symhash, symbol, sym, false, - SYM_TYPE_CODE | SYM_TYPE_DUP_DISCARD, NULL)) + SymType symType = SYM_TYPE_DUP_DISCARD | SYM_TYPE_HIDDEN; + symType |= hdr.Type == IMPORT_OBJECT_CODE ? SYM_TYPE_CODE : SYM_TYPE_DATA; + + if (!ghciInsertSymbolTable(dll, symhash, symbol, sym, false, symType, NULL)) return false; return true; View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ac1780b62a270952a983128f385f88f3... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ac1780b62a270952a983128f385f88f3... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Tamar Christina (@Phyx)