diff options
Diffstat (limited to 'tests/run-strip-remove-keep.sh')
-rwxr-xr-x | tests/run-strip-remove-keep.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run-strip-remove-keep.sh b/tests/run-strip-remove-keep.sh index 92647fa7..b0183e7c 100755 --- a/tests/run-strip-remove-keep.sh +++ b/tests/run-strip-remove-keep.sh @@ -109,6 +109,8 @@ Section Headers: EOF +testrun rm testfile.debug testfile.elf + # Explicitly keep .symtab (pulls in .strtab, so they will both be in elf). 32bit echo strip --keep-section=.symtab testfile testrun ${abs_top_builddir}/src/strip --keep-section=.symtab -o testfile.elf -f testfile.debug testfile @@ -196,6 +198,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # A random 64bit testfile testfiles testfile69.so # Explicitly keep .strtab (but not .symtab, so .strtab will be in both). 64bit @@ -276,6 +280,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # Explicitly keep .symtab (pulls in .strtab, so they will both be in elf). 64bit # Use --remove-comment to make sure testfile.debug isn't empty. echo strip --keep-section=.symtab --remove-comment testfile69.so @@ -355,6 +361,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # Explicitly remove .symtab (but not .strtab, so it will be in both). 32bit echo strip -g --remove-section=.symtab testfile testrun ${abs_top_builddir}/src/strip -g --remove-section=.symtab -o testfile.elf -f testfile.debug testfile @@ -442,6 +450,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # Explicitly remove both .symtab and .strtab. Keep .stab and .stabstr 32bit echo strip -g --remove-section=".s[yt][mr]tab" --keep-section=".stab*" testfile testrun ${abs_top_builddir}/src/strip -g --remove-section=".s[yt][mr]tab" --keep-section=".stab*" -o testfile.elf -f testfile.debug testfile @@ -530,6 +540,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # Explicitly remove .symtab (but not .strtab, so it will be in both). 64bit echo strip -g --remove-section=.symtab testfile69.so testrun ${abs_top_builddir}/src/strip -g --remove-section=.symtab -o testfile.elf -f testfile.debug testfile69.so @@ -608,6 +620,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # Explicitly remove both .symtab and .strtab. Keep .comment section. 64bit echo strip -g --remove-section=".s[yt][mr]tab" --keep-section=.comment testfile69.so testrun ${abs_top_builddir}/src/strip -g --remove-section=".s[yt][mr]tab" --keep-section=.comment -o testfile.elf -f testfile.debug testfile69.so |