Created
May 2, 2023 02:22
-
-
Save anzz1/daa6efc0f7ed67fa1483d43d67c1fcb8 to your computer and use it in GitHub Desktop.
xldd.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xldd() { if [ -z "$1" ]; then echo 'xldd: usage: xldd <elf>'; else if [ -z "$CROSS_COMPILE" ]; then echo 'xldd: error: $CROSS_COMPILE not defined'; else if [ -x "$CROSS_COMPILE""readelf" ]; then echo "xldd: "$1""; "$CROSS_COMPILE""readelf" -d "$1" | grep "Shared library:"; else echo "xldd: error: "$CROSS_COMPILE""readelf" is not executable"; fi; fi; fi; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment