Skip to content

Instantly share code, notes, and snippets.

@azat
Created April 26, 2014 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azat/11315401 to your computer and use it in GitHub Desktop.
Save azat/11315401 to your computer and use it in GitHub Desktop.
# Will print commands to run on another machine
# to validate that all symbols/versions available there.
env LD_DEBUG=all /path/to/bin -h 2>&1 | fgrep 'checking for version' | awk '{sym=$5; gsub(/[^a-zA-Z.0-9_]/, "", sym); printf "echo %s:%s && nm -D %s | fgrep %s || echo NOT FOUND\n", $8, sym, $8, sym}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment