diff --git a/ld/ChangeLog b/ld/ChangeLog index d9526702859..4db576cce74 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2015-02-24 Senthil Kumar Selvaraj + + * 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. + 2015-01-21 Yoshinori Sato * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations. diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc index cc4561f4eb5..038e7ab6c22 100644 --- a/ld/scripttempl/avr.sc +++ b/ld/scripttempl/avr.sc @@ -14,14 +14,23 @@ cat < + + * ld-avr/region_overflow.d: New test. + * ld-avr/region_overflow.s: Likewise. + 2015-02-19 H.J. Lu PR ld/4317 diff --git a/ld/testsuite/ld-avr/region_overflow.d b/ld/testsuite/ld-avr/region_overflow.d new file mode 100644 index 00000000000..305d2420370 --- /dev/null +++ b/ld/testsuite/ld-avr/region_overflow.d @@ -0,0 +1,6 @@ +#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' diff --git a/ld/testsuite/ld-avr/region_overflow.s b/ld/testsuite/ld-avr/region_overflow.s new file mode 100644 index 00000000000..c2899e7f64f --- /dev/null +++ b/ld/testsuite/ld-avr/region_overflow.s @@ -0,0 +1,5 @@ +.section .text +.byte 0xA +.byte 0xB +.byte 0xC +.byte 0xD