Skip to content

Instantly share code, notes, and snippets.

@jdtournier
Created September 26, 2017 09:49
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 jdtournier/74473887e5f6229a4bbea8ef7d3bbef5 to your computer and use it in GitHub Desktop.
Save jdtournier/74473887e5f6229a4bbea8ef7d3bbef5 to your computer and use it in GitHub Desktop.
work out dependencies of executable
#!/bin/bash
readelf -d "$1" 2>/dev/null | sed -n -e 's/^.*NEEDED.*\[\(\S*\)\]/\1/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment