aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-elf/lma.lnk6
-rw-r--r--ld/testsuite/ld-elf/lma.s4
3 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 0becf14..ddbd75d 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-05 Alan Modra <amodra@bigpond.net.au>
+
+ PR 6473
+ * ld-elf/lma.s, ld-elf/lma.lnk: New test.
+ * ld-elf/binutils.exp: Run it.
+
2008-05-03 Mike Frysinger <vapier@gentoo.org>
* ld-scripts/defined.s: Use .set syntax rather than =.
diff --git a/ld/testsuite/ld-elf/lma.lnk b/ld/testsuite/ld-elf/lma.lnk
new file mode 100644
index 0000000..7aac6d0
--- /dev/null
+++ b/ld/testsuite/ld-elf/lma.lnk
@@ -0,0 +1,6 @@
+SECTIONS
+{
+ . = -0x100000;
+ .text : AT(ADDR(.text) + 0x100000) { *(.text) }
+ /DISCARD/ : { *(*) }
+}
diff --git a/ld/testsuite/ld-elf/lma.s b/ld/testsuite/ld-elf/lma.s
new file mode 100644
index 0000000..039d26b
--- /dev/null
+++ b/ld/testsuite/ld-elf/lma.s
@@ -0,0 +1,4 @@
+ .text
+ .global _start
+_start:
+ .long 0