Mesa (master): bin/symbols-check.py: add --ignore-symbol argument
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jul 10 10:17:06 UTC 2020
Module: Mesa
Branch: master
Commit: 8da237428c19ff185d8be7c2909a2d74874b646b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8da237428c19ff185d8be7c2909a2d74874b646b
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Wed Jul 8 13:55:24 2020 +0200
bin/symbols-check.py: add --ignore-symbol argument
This will be used by radv to ignore 'the ac_init_llvm_once' symbol,
which is not part of vulkan-icd-symbols.txt but is required to be
exported to improve interop with radeonsi/vaapi.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Acked-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5648>
---
bin/symbols-check.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bin/symbols-check.py b/bin/symbols-check.py
index 3b077371ad7..a33d0932ed9 100644
--- a/bin/symbols-check.py
+++ b/bin/symbols-check.py
@@ -88,6 +88,9 @@ def main():
parser.add_argument('--dumpbin',
action='store',
help='path to binary (or name in $PATH)')
+ parser.add_argument('--ignore-symbol',
+ action='append',
+ help='do not process this symbol')
args = parser.parse_args()
try:
@@ -147,6 +150,8 @@ def main():
continue
if symbol in optional_symbols:
continue
+ if args.ignore_symbol and symbol in args.ignore_symbol:
+ continue
if symbol[:2] == '_Z':
# As ajax found out, the compiler intentionally exports symbols
# that we explicitely asked it not to export, and we can't do
More information about the mesa-commit
mailing list