aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-checks/over.s
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2017-03-10 15:16:19 +0100
committerTristan Gingold <gingold@adacore.com>2017-03-13 10:41:22 +0100
commitd40e34db392f834793fb9af487121776b4cec6e7 (patch)
tree4d600d3859a51a310aa7663c6762b859326940d9 /ld/testsuite/ld-checks/over.s
parent4b5900d8b81522bd6ebe4d94d45dfb54d1982c62 (diff)
downloadgdb-d40e34db392f834793fb9af487121776b4cec6e7.zip
gdb-d40e34db392f834793fb9af487121776b4cec6e7.tar.gz
gdb-d40e34db392f834793fb9af487121776b4cec6e7.tar.bz2
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.
Diffstat (limited to 'ld/testsuite/ld-checks/over.s')
-rw-r--r--ld/testsuite/ld-checks/over.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-checks/over.s b/ld/testsuite/ld-checks/over.s
new file mode 100644
index 0000000..7f8d4b5
--- /dev/null
+++ b/ld/testsuite/ld-checks/over.s
@@ -0,0 +1,7 @@
+ .text
+ .globl _start
+_start:
+ .long 0
+ .long 0
+ .long 0
+ .long 0