aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>2015-02-24 11:26:28 +0000
committerNick Clifton <nickc@redhat.com>2015-02-24 11:26:28 +0000
commitcb0728165e282be2ad9b121c8c1e9da98c9784e4 (patch)
treeadd743d75d0f02985262cd0062ec3b7dd1710eac /ld/testsuite
parent0821d5b14efc2fb0c929ba077855cbc5e7a0932a (diff)
downloadgdb-cb0728165e282be2ad9b121c8c1e9da98c9784e4.zip
gdb-cb0728165e282be2ad9b121c8c1e9da98c9784e4.tar.gz
gdb-cb0728165e282be2ad9b121c8c1e9da98c9784e4.tar.bz2
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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-avr/region_overflow.d6
-rw-r--r--ld/testsuite/ld-avr/region_overflow.s5
3 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 3eb1c99..b362a0a 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
+
+ * ld-avr/region_overflow.d: New test.
+ * ld-avr/region_overflow.s: Likewise.
+
2015-02-19 H.J. Lu <hongjiu.lu@intel.com>
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 0000000..305d242
--- /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 0000000..c2899e7
--- /dev/null
+++ b/ld/testsuite/ld-avr/region_overflow.s
@@ -0,0 +1,5 @@
+.section .text
+.byte 0xA
+.byte 0xB
+.byte 0xC
+.byte 0xD