bin/symbols-check: ignore nm lines that don't have a symbol name

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35891>
This commit is contained in:
Eric Engestrom 2025-06-29 16:56:41 +02:00 committed by Marge Bot
parent e626636e90
commit 5672230c19

View file

@ -66,6 +66,8 @@ def get_symbols_nm(nm, lib):
output = subprocess.check_output([nm, '-gP', lib],
stderr=open(os.devnull, 'w')).decode("ascii")
for line in output.splitlines():
if line.startswith(' '):
continue
fields = line.split()
if len(fields) == 2 and fields[1] == 'U':
continue