#!/bin/sh
# This program reads the a.list file, which  should  contain  a  list  of  .a
# files,  and  write a.syms, which will contain a list of the defined symbols
# in the listed .a files.  The idea is to make it  easy  to  find  out  which
# archives define which symbols.  See also the ga script.

(cat a.list | xargs nm) \
	| sed -e '/|UNDEF /d' -e '/| *$/d' \
	> a.syms
