PR 6473
authorAlan Modra <amodra@gmail.com>
Mon, 5 May 2008 01:43:55 +0000 (01:43 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 5 May 2008 01:43:55 +0000 (01:43 +0000)
* ld-elf/lma.s, ld-elf/lma.lnk: New test.
* ld-elf/binutils.exp: Run it.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/lma.lnk [new file with mode: 0644]
ld/testsuite/ld-elf/lma.s [new file with mode: 0644]

index 0becf14d5a140674166df9001d599159b5f7fc0f..ddbd75dadc94be7cb9ad70e49d7be66383e69d5d 100644 (file)
@@ -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 (file)
index 0000000..7aac6d0
--- /dev/null
@@ -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 (file)
index 0000000..039d26b
--- /dev/null
@@ -0,0 +1,4 @@
+ .text
+ .global _start
+_start:
+ .long 0