summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2023-03-09 22:21:43 +0100
committerMarge Bot <emma+marge@anholt.net>2023-03-10 13:25:48 +0000
commit9d42e31b540490e902ee72837ee247a97f632ce6 (patch)
tree4020e581b4c94f0655a9d1653b756e40165e5125 /bin
parente5b29e6735f7cf7025d9a0b2e214cb73a98e72bc (diff)
downloadmesa-9d42e31b540490e902ee72837ee247a97f632ce6.tar.gz
symbols-check: support OSes based on GNU toolchain
Some of the symbols listed in PLATFORM_SYMBOLS are not only specific to Linux, but rather specific to the GNU toolchain. Hence, use them when inspecting ELF binaries produced by a GNU toolchain: this means on Hurd ('GNU'), and on e.g. kFreeBSD ('GNU/kFreeBSD'). Signed-off-by: Pino Toscano <toscano.pino@tiscali.it> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21825>
Diffstat (limited to 'bin')
-rw-r--r--bin/symbols-check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/symbols-check.py b/bin/symbols-check.py
index 12c63812c9a..6049cbe2918 100644
--- a/bin/symbols-check.py
+++ b/bin/symbols-check.py
@@ -68,7 +68,7 @@ def get_symbols_nm(nm, lib):
if len(fields) == 2 or fields[1] == 'U':
continue
symbol_name = fields[0]
- if platform_name == 'Linux':
+ if platform_name == 'Linux' or platform_name == 'GNU' or platform_name.startswith('GNU/'):
if symbol_name in PLATFORM_SYMBOLS:
continue
elif platform_name == 'Darwin':