Brian Silverman | 8649792 | 2018-02-10 19:28:39 -0500 | [diff] [blame] | 1 | # Buggy binutils objdump might strip SHF_INFO_LINK from relocation sections. |
| 2 | # With gcc5 we might have a .rela.plt section with that flag set. |
| 3 | # |
| 4 | # int main() |
| 5 | # { |
| 6 | # return 0; |
| 7 | # } |
| 8 | # |
| 9 | # gcc -o testfile-info-link -g testprog.c |
| 10 | # objcopy --only-keep-debug testfile-info-link testfile-info-link.debuginfo |
| 11 | # eu-strip --strip-debug -o testfile-info-link.stripped testfile-info-link |
| 12 | |
| 13 | original=testfile-info-link |
| 14 | stripped=testfile-info-link.stripped |
| 15 | debugfile=testfile-info-link.debuginfo |
| 16 | |
| 17 | . $srcdir/run-unstrip-test.sh |