[binutils-gdb] Exclude libpthread from automatic export generation
Alan Modra
amodra@sourceware.org
Mon Jan 27 03:55:55 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=18df3e8323dcf9fdfec56b5f12c04a9c723a0931
commit 18df3e8323dcf9fdfec56b5f12c04a9c723a0931
Author: Christopher Wellons <wellons@nullprogram.com>
Date: Sat Jan 25 14:45:20 2025 -0500
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:
---
ld/pe-dll.c | 2 ++
1 file changed, 2 insertions(+)
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 }
};
More information about the Binutils-cvs
mailing list