From 0e7461c15fa5b400a978274c82da50962455bc9c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 29 Aug 2006 01:24:17 +0000 Subject: [PATCH] New tests. --- ld/testsuite/ChangeLog | 12 ++++++++++++ ld/testsuite/ld-elf/loadaddr3.t | 16 ++++++++++++++++ ld/testsuite/ld-elf/loadaddr3a.d | 9 +++++++++ ld/testsuite/ld-elf/loadaddr3b.d | 13 +++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 ld/testsuite/ld-elf/loadaddr3.t create mode 100644 ld/testsuite/ld-elf/loadaddr3a.d create mode 100644 ld/testsuite/ld-elf/loadaddr3b.d diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index d3cd2d2e0ee..0f948f02a8e 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2006-08-29 Nathan Sidwell + + * ld-elf/loadaddr3.t: New. + * ld-elf/loadaddr3a.d: New. + * ld-elf/loadaddr3b.d: New. + +2006-08-23 Alan Modra + + * ld-powerpc/plt1.s: New. + * ld-powerpc/plt1.d: New. + * ld-powerpc/powerpc.exp: Run it. + 2006-08-23 H.J. Lu PR ld/3052 diff --git a/ld/testsuite/ld-elf/loadaddr3.t b/ld/testsuite/ld-elf/loadaddr3.t new file mode 100644 index 00000000000..789f61eda1e --- /dev/null +++ b/ld/testsuite/ld-elf/loadaddr3.t @@ -0,0 +1,16 @@ + +MEMORY +{ + rom (rx) : ORIGIN = 0x100, LENGTH = 0x100 + ram (rwx) : ORIGIN = 0x200, LENGTH = 0x100 + +} + +SECTIONS +{ + .text : {*(.text .text.*)} >rom + .data : {data_load = LOADADDR (.data); + data_start = ADDR (.data); + *(.data .data.*)} >ram AT>rom + /DISCARD/ : { *(.*) } +} diff --git a/ld/testsuite/ld-elf/loadaddr3a.d b/ld/testsuite/ld-elf/loadaddr3a.d new file mode 100644 index 00000000000..395f286ff3f --- /dev/null +++ b/ld/testsuite/ld-elf/loadaddr3a.d @@ -0,0 +1,9 @@ +#source: loadaddr.s +#ld: -T loadaddr3.t -z max-page-size=0x200000 +#readelf: -l --wide +#target: *-*-elf* + +#... + LOAD +0x000000 0x0*00000000 0x0*00000000 0x0*0101 0x0*0101 R E 0x.* + LOAD +0x000200 0x0*00000200 0x0*00000101 0x0*0001 0x0*0001 RW 0x.* +#pass diff --git a/ld/testsuite/ld-elf/loadaddr3b.d b/ld/testsuite/ld-elf/loadaddr3b.d new file mode 100644 index 00000000000..90967213448 --- /dev/null +++ b/ld/testsuite/ld-elf/loadaddr3b.d @@ -0,0 +1,13 @@ +#source: loadaddr.s +#ld: -T loadaddr3.t -z max-page-size=0x200000 +#objdump: -t +#target: *-*-elf* + +#... +0+0000100 l d .text 0+0000000 .text +0+0000200 l d .data 0+0000000 .data +#... +0+0000101 g \*ABS\* 0+0000000 data_load +#... +0+0000200 g .data 0+0000000 data_start +#pass -- 2.30.2