blob: 3d0302c8e4240ec468ebe73bf17d22b404c2152e [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#!/bin/sh
2
3std="$1"
4shift
5cod="$*"
6
7result=0
8
9for l in $top_builddir/lib/lib*-*.so; do \
10 readelf -D -W -s $l | \
11 $AWK '
12/^[[:space:]]*[[:digit:]]/ { if ($8 != "UND") print $NF; }
13'; \
14 done | sort | uniq > $uclibc_out
15for code in $cod; do cat $code.$std.syms; done | sort | uniq > $glibc_out
16result=0
17exit $result