From 6766b6945a6f1948c75309cc69ccf9dea9cdc684 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 5 May 2008 01:43:55 +0000 Subject: [PATCH] PR 6473 * ld-elf/lma.s, ld-elf/lma.lnk: New test. * ld-elf/binutils.exp: Run it. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-elf/lma.lnk | 6 ++++++ ld/testsuite/ld-elf/lma.s | 4 ++++ 3 files changed, 16 insertions(+) create mode 100644 ld/testsuite/ld-elf/lma.lnk create mode 100644 ld/testsuite/ld-elf/lma.s 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 -- 2.30.2