binutils-gdb/ld/testsuite/ld-avr/region_overflow.d
Senthil Kumar Selvaraj cb0728165e This patch modifies the AVR linker script templates to use __<name>_REGION_LENGTH__ symbols, if provided, for setting memory region lengths, defaulting to the current constant values otherwise.
ld	* scripttempl/avr.sc: Add new user_signatures region. Define and Use
	symbols for all region lengths.
	* scripttempl/avrtiny.sc: Define and use symbols for all region lengths.

testsuite * ld-avr/region_overflow.d: New test.
	* ld-avr/region_overflow.s: Likewise.
2015-02-24 11:26:28 +00:00

7 lines
211 B
Makefile

#name: AVR catch region overflow errors
#as: -mmcu=avrxmega2
#ld: -mavrxmega2 --relax --defsym __TEXT_REGION_LENGTH__=2
#source: region_overflow.s
#target: avr-*-*
#error: `.text' will not fit in region `text'