aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-10-28 00:24:09 +0000
committerHans-Peter Nilsson <hp@axis.com>2005-10-28 00:24:09 +0000
commit8559470fe507829e1dab7a990e669946b71e03af (patch)
tree5ccc02fd67dc3cee83ac21c039260510dc5091fe
parent8e33215f84fcc3b13da48d82a97b9a288abc62fe (diff)
downloadgdb-8559470fe507829e1dab7a990e669946b71e03af.zip
gdb-8559470fe507829e1dab7a990e669946b71e03af.tar.gz
gdb-8559470fe507829e1dab7a990e669946b71e03af.tar.bz2
PR ld/1567
* ld-cris/noov.s, ld-cris/noov.d: New test.
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-cris/noov.d13
-rw-r--r--ld/testsuite/ld-cris/noov.s14
3 files changed, 32 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index a35f09a..d187200 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-28 Hans-Peter Nilsson <hp@axis.com>
+
+ PR ld/1567
+ * ld-cris/noov.s, ld-cris/noov.d: New test.
+
2005-10-26 Alan Modra <amodra@bigpond.net.au>
* ld-elf/empty2.d: Allow more symbols.
diff --git a/ld/testsuite/ld-cris/noov.d b/ld/testsuite/ld-cris/noov.d
new file mode 100644
index 0000000..2108e38
--- /dev/null
+++ b/ld/testsuite/ld-cris/noov.d
@@ -0,0 +1,13 @@
+#notarget: cris-*-*aout*
+#ld: --section-start=.text=0xc0010000
+#objdump: -s -j .text
+
+# Check that we don't get a "relocation truncated to fit", when a
+# relocation would overflow if it hadn't been wrapping. We always
+# want 32-bit-wrapping on a 32-bit target for the benefit of Linux
+# address-mapping macros.
+
+.*: file format elf32.*-cris
+
+Contents of section \.text:
+ c0010000 04200100 00200100 .*
diff --git a/ld/testsuite/ld-cris/noov.s b/ld/testsuite/ld-cris/noov.s
new file mode 100644
index 0000000..88e803f
--- /dev/null
+++ b/ld/testsuite/ld-cris/noov.s
@@ -0,0 +1,14 @@
+ .text
+ ; Test that this works both with a symbol defined in a section...
+ .dword __Edata+0x40000000
+
+ ; ...as well as absolute symbol (defined outside sections in the
+ ; linker script).
+ .dword __Sdata+0x40000000
+
+ .data
+ ; Make sure we get the same section alignment for *-elf as for *-linux*.
+ .balign 0x2000
+
+ ; Make .data non-empty.
+ .dword 0