Retro68/elfutils/tests/run-unstrip-test3.sh
Wolfgang Thaller d21be3b4e1 Add elfutils-0.170
(from https://sourceware.org/elfutils/, GPL/LGPL licensed)
2017-09-21 21:04:42 +02:00

18 lines
514 B
Bash
Executable File

# 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