#!/bin/sh export LC_ALL=C for so in "$@"; do readelf -Ds -- "$so" \ | awk '$1 ~ /^[0-9]*$/ && $8 != "UND" { print $9 }' \ | sort done