mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
3f97ba9fc8
Verify that `strip' terminates gracefully and a correct error message is produced for a relocation encountered with an invalid symbol index. No single relocation number is valid across all targets we support, so pick a few numbers to choose from depending on the target. binutils/ * testsuite/binutils-all/strip-14.d: New test. * testsuite/binutils-all/strip-14rel.s: New test source. * testsuite/binutils-all/strip-14rela.s: New test source. * testsuite/binutils-all/strip-14mips64.s: New test source. * testsuite/binutils-all/objcopy.exp: Run the new test.
8 lines
258 B
Makefile
8 lines
258 B
Makefile
#PROG: strip
|
|
#strip: -g
|
|
#error: \A[^\n]*: relocation 0 has invalid symbol index 1048560\Z
|
|
#not-target: rx-*
|
|
# The RX targets do not complain about bad relocs, unless they are
|
|
# actually used
|
|
# (which is what should really happen with the other targets...)
|