Files
binutils-gdb/binutils/testsuite/binutils-all/strip-14mips64.s
Maciej W. Rozycki 3f97ba9fc8 binutils/testsuite: Verify the handling of invalid `r_sym' in relocation
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.
2018-04-09 13:42:00 +01:00

15 lines
184 B
ArmAsm

.text
foo:
.dc.l 0x12345678
.section .rela.text
.dc.a 0
.dc.l 0x000ffff0
.dc.b 0, 0, 0, RELOC
.dc.a 0x00000001
.dc.a 0
.dc.l 0
.dc.b 0, 0, 0, 0
.dc.a 0