summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--helper/binutil.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/helper/binutil.inc b/helper/binutil.inc
index 35e35015..29f6f933 100644
--- a/helper/binutil.inc
+++ b/helper/binutil.inc
@@ -157,3 +157,13 @@ get_link_chain() {
done
pdebug "\t\tCHAIN: $CHAIN"
}
+
+# Function to get libc and ld-linux
+get_basic_libs() {
+ LIST="basic_libs_list"
+ for i in $(ldd ${SHELL})
+ do
+ [ $(echo $i | grep '^/' | grep -c ld) -eq 1 -o $(echo $i | grep '^/' | grep -c libc.so) -eq 1 ] && get_link_chain $i
+ done
+}
+