File: gnu-debugaltlink-name.sh

package info (click to toggle)
dwz 0.16-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,260 kB
  • sloc: ansic: 16,741; exp: 1,555; asm: 1,349; sh: 1,227; makefile: 174; cpp: 107; awk: 23
file content (11 lines) | stat: -rwxr-xr-x 190 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/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\]  //'