binutils-gdb/ld/testsuite/ld-checks/over.d
Tristan Gingold d40e34db39 ld: add an error in case of address space overflow.
ld/
	* ldlang.c (lang_check_section_addresses): Check for address space
	overflow.
	* testsuite/ld-checks/checks.exp (overflow_check): New procedure
	* testsuite/ld-checks/over.s: New test source.
	* testsuite/ld-checks/over.d: New test.
	* testsuite/ld-checks/over2.s: New test source.
	* testsuite/ld-checks/over2.d: New test.
2017-03-13 10:41:22 +01:00

5 lines
124 B
Makefile

#name: section size overflow
#source: over.s
#ld: -Ttext=0xfffffffc
#error: .* section .text VMA wraps around address space