summaryrefslogtreecommitdiff
path: root/tests/run-unstrip-test3.sh
blob: 5459e72deb5c8517fc3ff6123ee35e4eac8c53c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Buggy binutils objdump might strip SHF_INFO_LINK from relocation sections.
# With gcc5 we might have a .rela.plt section with that flag set.
#
# int main() 
# {
#     return 0;
# }
#
# gcc -o testfile-info-link -g testprog.c
# objcopy --only-keep-debug testfile-info-link testfile-info-link.debuginfo
# eu-strip --strip-debug -o testfile-info-link.stripped testfile-info-link

original=testfile-info-link
stripped=testfile-info-link.stripped
debugfile=testfile-info-link.debuginfo

. $srcdir/run-unstrip-test.sh