]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Exclude libpthread from automatic export generation
authorChristopher Wellons <wellons@nullprogram.com>
Sat, 25 Jan 2025 19:45:20 +0000 (14:45 -0500)
committerAlan Modra <amodra@gmail.com>
Mon, 27 Jan 2025 03:55:20 +0000 (14:25 +1030)
Before this change, static linking libwinpthread, commonly distributed
as part of Mingw-w64, while using automatic symbol exports would export
the entire threading API, which is never wanted. This is always the case
when static linking libstdc++ built against libpthread.

ld/pe-dll.c

index d888a0b6373a9249a6bfa88abaaa6ba02d469af0..f24b8716ae2fcc35ca03aaec7ae3b94763a77309 100644 (file)
@@ -382,6 +382,8 @@ static const autofilter_entry_type autofilter_liblist[] =
   { STRING_COMMA_LEN ("libmsvcrt-os") },
   { STRING_COMMA_LEN ("libucrt") },
   { STRING_COMMA_LEN ("libucrtbase") },
+  { STRING_COMMA_LEN ("libpthread") },
+  { STRING_COMMA_LEN ("libwinpthread") },
   { NULL, 0 }
 };