From e5884cfb18e1bac3caf806b1392a87dc0d511aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Miku=C5=82a?= Date: Tue, 26 Aug 2025 20:19:38 +0200 Subject: [PATCH] build: use .dynsym for selecting symbols to export Nm uses .symtab by default which is less reliable for this use case. Previously this would fail if user enabled stripping or used linker that doesn't add undefined symbols to .symtab, like here: https://github.com/davidlattimore/wild/issues/819#issuecomment-3215079862 --- tools/create-exports-NetworkManager.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/create-exports-NetworkManager.sh b/tools/create-exports-NetworkManager.sh index 38bcdaf68c..08b422a896 100755 --- a/tools/create-exports-NetworkManager.sh +++ b/tools/create-exports-NetworkManager.sh @@ -19,7 +19,7 @@ _sort() { call_nm() { if [ -n "$from_meson" ]; then - "${NM:-nm}" "$1" | + "${NM:-nm}" -D "$1" | sed -n 's/.* \([^ ]\) \([^ ]*\)$/\1 \2/p' else libtool=(${LIBTOOL:-libtool}) @@ -105,4 +105,3 @@ case "$1" in do_generate ;; esac -