dwz/testsuite/scripts/gnu-debugaltlink-name.sh

12 lines
190 B
Bash
Raw Permalink Normal View History

2022-08-25 18:00:22 +08:00
#!/bin/sh
if ! readelf -S $1 | grep -q '\.gnu_debugaltlink'; then
exit
fi
readelf \
--string-dump=.gnu_debugaltlink \
$1 \
| grep -a '\[[ ]*0\]' \
| sed 's/.*0\] //'