X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=bin%2Fsymbols-check.py;h=a33d0932ed9926dececca0514fbf567ab816b523;hb=f383b2c18acf162ba998a172d426c7ad41baaa90;hp=3b077371ad7079dce59e18099ed6b110fc407579;hpb=2a61a8d95a8baebfbec53de8f6f2f70b09801486;p=mesa.git 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