Skip to contentSkip to conversation

connman, vpn: avoid hiding implementation-reserved symbols

PATCH New P. Tatrai 1 participant 1 message Sep 7, 2025

lore
Share & tools
lore

P. Tatrai

author
#0 lore raw

PATCH 1/1 connman, vpn: avoid hiding implementation-reserved symbols

From: Peter Tatrai <[email protected]>

When using 'local: *;' in the version script, all symbols, including those reserved for the implementation (such as _IO_stdin_used), are hidden. This causes glibc's libio to misdetect the libc version, leading to a crash when glibc prints to stdout (e.g., with connmand --help) on PowerPC.

Change 'local: *;' to 'local: [!_]*;' to avoid hiding symbols starting with an underscore, as recommended in glibc bug 17908
(https://sourceware.org/bugzilla/show_bug.cgi?id=17908). This ensures libio can correctly detect the libc version and prevents the crash.

Reference: https://sourceware.org/bugzilla/show_bug.cgi?id=17908

---
 src/connman.ver | 2 +-
 vpn/vpn.ver     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
src/connman.ver +1 -1
index 03a0eec0..b75e90dc 100644
@@ -3,5 +3,5 @@
 		connman_*;
 		g_dbus_*;
 	local:
-		*;
+		[!_]*;
 };
vpn/vpn.ver +1 -1
index b8877064..5cad344c 100644
@@ -4,5 +4,5 @@
 		vpn_*;
 		g_dbus_*;
 	local:
-		*;
+		[!_]*;
 };
Signature · 1 line
2.39.5