[PATCH] ld/PE: Add another mingw UCRT library name to the autoexport exclusion list

Martin Storsjö martin@martin.st
Thu Mar 20 21:35:38 GMT 2025


Since 2020, mingw-w64 provides a C runtime import library variant
named "libucrtapp" too, exclude this one from autoexports like
the others.

Signed-off-by: Martin Storsjö <martin@martin.st>
---
Adding the new entry in the middle of the list, to group it with
the other UCRT entries.
---
 ld/pe-dll.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 4e72f1b8d8d..de1cfafb65b 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -381,6 +381,7 @@ static const autofilter_entry_type autofilter_liblist[] =
   { STRING_COMMA_LEN ("libmsvcrt") },
   { STRING_COMMA_LEN ("libmsvcrt-os") },
   { STRING_COMMA_LEN ("libucrt") },
+  { STRING_COMMA_LEN ("libucrtapp") },
   { STRING_COMMA_LEN ("libucrtbase") },
   { STRING_COMMA_LEN ("libpthread") },
   { STRING_COMMA_LEN ("libwinpthread") },
-- 
2.43.0



More information about the Binutils mailing list