#!/bin/ksh # # This script should extract the globals from an object that # should be exported in a shared object. This version is for AIX and GCC. # Shared library handling is somewhat system dependent. # nm -BhCg $* | grep -v -e '- U ]:$' | cut -c14- | grep -E -v '^[.]|^_GLOBAL_'| sort -u