diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-04-30 15:26:36 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-04-30 15:30:39 +0200 |
commit | 202c95c216ac193fc8ea0f668f1b26f7ddc2907e (patch) | |
tree | 966767fb0addc866da93f55cf8672f7e0437a9d9 /contrib/devtools | |
parent | 92e3022f888a2e090a91c1f097ecc27e9601354b (diff) |
devtools: have symbol check script check for exported symbols
After last commit, our executables should export no symbols anymore. To
make sure that this stays the case, verify this in the symbol checker
script.
Diffstat (limited to 'contrib/devtools')
-rwxr-xr-x | contrib/devtools/symbol-check.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/devtools/symbol-check.py b/contrib/devtools/symbol-check.py index 4f6a18da2d..8dd6d8f037 100755 --- a/contrib/devtools/symbol-check.py +++ b/contrib/devtools/symbol-check.py @@ -98,10 +98,15 @@ if __name__ == '__main__': cppfilt = CPPFilt() retval = 0 for filename in sys.argv[1:]: + # Check imported symbols for sym,version in read_symbols(filename, True): if version and not check_version(MAX_VERSIONS, version): print('%s: symbol %s from unsupported version %s' % (filename, cppfilt(sym), version)) retval = 1 + # Check exported symbols + for sym,version in read_symbols(filename, False): + print('%s: export of symbol %s not allowed' % (filename, cppfilt(sym))) + retval = 1 exit(retval) |