From: Alan Modra Date: Mon, 5 May 2008 01:43:55 +0000 (+0000) Subject: PR 6473 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6766b6945a6f1948c75309cc69ccf9dea9cdc684;p=binutils-gdb.git PR 6473 * ld-elf/lma.s, ld-elf/lma.lnk: New test. * ld-elf/binutils.exp: Run it. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 0becf14d5a1..ddbd75dadc9 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-05-05 Alan Modra + + PR 6473 + * ld-elf/lma.s, ld-elf/lma.lnk: New test. + * ld-elf/binutils.exp: Run it. + 2008-05-03 Mike Frysinger * 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 00000000000..7aac6d02f2d --- /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 00000000000..039d26b45c5 --- /dev/null +++ b/ld/testsuite/ld-elf/lma.s @@ -0,0 +1,4 @@ + .text + .global _start +_start: + .long 0