aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-05-05 01:43:55 +0000
committerAlan Modra <amodra@gmail.com>2008-05-05 01:43:55 +0000
commit6766b6945a6f1948c75309cc69ccf9dea9cdc684 (patch)
treeb5077b6674fbedc70f26f838c94309eed056e162 /ld
parentf2a4fb999aa11a4f93d3e6b8d44246328b0f466e (diff)
downloadgdb-6766b6945a6f1948c75309cc69ccf9dea9cdc684.zip
gdb-6766b6945a6f1948c75309cc69ccf9dea9cdc684.tar.gz
gdb-6766b6945a6f1948c75309cc69ccf9dea9cdc684.tar.bz2
PR 6473
* ld-elf/lma.s, ld-elf/lma.lnk: New test. * ld-elf/binutils.exp: Run it.
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