Mesa (master): mapi: Fix symbols check with ASan enabled.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 15 19:56:27 UTC 2020


Module: Mesa
Branch: master
Commit: a8fb7ac1c4f2cee6b2f772efe2a0b503a3480df9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8fb7ac1c4f2cee6b2f772efe2a0b503a3480df9

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Dec  4 13:23:03 2020 -0800

mapi: Fix symbols check with ASan enabled.

ASan apparently introduces public symbols with __odr_asan as the prefix.
Fixes unit tests when building with ASan.

Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7936>

---

 bin/symbols-check.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/symbols-check.py b/bin/symbols-check.py
index e56b49df10a..c53b20bccbf 100644
--- a/bin/symbols-check.py
+++ b/bin/symbols-check.py
@@ -14,6 +14,8 @@ PLATFORM_SYMBOLS = [
     '__cxa_guard_acquire',
     '__cxa_guard_release',
     '__end__',
+    '__odr_asan._glapi_Context',
+    '__odr_asan._glapi_Dispatch',
     '_bss_end__',
     '_edata',
     '_end',



More information about the mesa-commit mailing list