File: file-strip

package info (click to toggle)
binutils-sh-elf 2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 48 kB
  • sloc: makefile: 49; sh: 14
file content (17 lines) | stat: -rwxr-xr-x 346 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e
# Check that 'file' can distinguish stripped and unstripped binaries.
cd "$AUTOPKGTEST_TMP"
sh-elf-as /dev/null
if ! [ -e a.out ]
then
	echo Failed to make a.out >&2
	exit 1
fi

file_unstripped=$(file a.out)
sh-elf-strip a.out
if [ "$(file a.out)" = "$file_unstripped" ]
then
	echo Got \'$file_unstripped\' both times >&2
	exit 1
fi