aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/rgn-over5.t
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-10-17 19:26:10 +0000
committerDaniel Jacobowitz <drow@false.org>2007-10-17 19:26:10 +0000
commit20e5635130c217d9980e98d3e81b8d106759577d (patch)
tree1433a0f90504a5529e816fd272f6091cc14dd353 /ld/testsuite/ld-scripts/rgn-over5.t
parent499ac353610f24006acf82c32503d8d15d0f278c (diff)
downloadgdb-20e5635130c217d9980e98d3e81b8d106759577d.zip
gdb-20e5635130c217d9980e98d3e81b8d106759577d.tar.gz
gdb-20e5635130c217d9980e98d3e81b8d106759577d.tar.bz2
2007-10-17 Zack Weinberg <zack@codesourcery.com>
* ldlang.c (lang_check_section_addresses): Also report size of overflow for any overflowed memory regions. (os_region_check): Diagnose an overflowed region only once per region. Do not reset region->current on overflow. 2007-10-17 Zack Weinberg <zack@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> Mark Shinwell <shinwell@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * ld-scripts/rgn-over.exp: New driver. * ld-scripts/rgn-over.s: New file. * ld-scripts/rgn-over1.d, ld-scripts/rgn-over1.t, ld-scripts/rgn-over2.d, ld-scripts/rgn-over2.t, ld-scripts/rgn-over3.d, ld-scripts/rgn-over3.t, ld-scripts/rgn-over4.d, ld-scripts/rgn-over4.t, ld-scripts/rgn-over5.d, ld-scripts/rgn-over5.t, ld-scripts/rgn-over6.d, ld-scripts/rgn-over6.t, ld-scripts/rgn-over7.d, ld-scripts/rgn-over7.t: New test cases.
Diffstat (limited to 'ld/testsuite/ld-scripts/rgn-over5.t')
-rw-r--r--ld/testsuite/ld-scripts/rgn-over5.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/rgn-over5.t b/ld/testsuite/ld-scripts/rgn-over5.t
new file mode 100644
index 0000000..2b0ae68
--- /dev/null
+++ b/ld/testsuite/ld-scripts/rgn-over5.t
@@ -0,0 +1,14 @@
+/* Memory region overflow tests: overflow LMA but not VMA. */
+
+MEMORY {
+ bss (rwx) : ORIGIN = 0, LENGTH = 0
+ r1 (rwx) : ORIGIN = 0x1000, LENGTH = 24
+ v1 (rwx) : ORIGIN = 0x2000, LENGTH = 8
+}
+_start = 0x1000;
+SECTIONS {
+ .bss : { *(.bss) } > bss
+ .text : { *(.txt) } > r1 AT> v1
+ .data : { *(.dat) } > r1 AT> v1
+ /DISCARD/ : { *(*) }
+}