From: Christopher Wellons Date: Sat, 25 Jan 2025 19:45:20 +0000 (-0500) Subject: Exclude libpthread from automatic export generation X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18df3e8323dcf9fdfec56b5f12c04a9c723a0931;p=thirdparty%2Fbinutils-gdb.git Exclude libpthread from automatic export generation 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. --- diff --git a/ld/pe-dll.c b/ld/pe-dll.c index d888a0b6373..f24b8716ae2 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -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 } };