summaryrefslogtreecommitdiff
path: root/test/plt/check-plt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/plt/check-plt.sh')
-rwxr-xr-xtest/plt/check-plt.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/test/plt/check-plt.sh b/test/plt/check-plt.sh
deleted file mode 100755
index bedc8fd35..000000000
--- a/test/plt/check-plt.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-allowed="
-calloc
-free
-malloc
-memalign
-realloc
-"
-
-${OBJDUMP:-objdump} -d ${top_builddir:-../..}/lib/libc.so.? | \
-gawk -v allowed="${allowed}" '
-BEGIN {
- COUNT = split(" " allowed, ALLOWED);
-}
-
-# Strip away the noise. The name will be like:
-# <brk>:
-# <foo@plt>
-function symstrip(name) {
- return gensub(/.*<([^>@]*).*/, "\\1", "", name);
-}
-
-{
-# Match the start of the symbol disassembly
-# 00009720 <brk>:
-if ($2 ~ />:$/) {
- f = symstrip($2);
-
-} else if ($NF ~ /@plt>/) {
- rf = symstrip($NF);
- for (a in ALLOWED) {
- a = ALLOWED[a];
- if (a == rf)
- next;
- }
- print "Func " f " references " rf;
-}
-}' | sort -u