diff options
author | Alan Modra <amodra@gmail.com> | 2006-08-29 01:24:17 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-08-29 01:24:17 +0000 |
commit | 0e7461c15fa5b400a978274c82da50962455bc9c (patch) | |
tree | 6cf8da96ad069545e5e06986d99a78256a20a161 /ld | |
parent | a80365129261b3b720f85852914e420c5e2100c8 (diff) | |
download | gdb-0e7461c15fa5b400a978274c82da50962455bc9c.zip gdb-0e7461c15fa5b400a978274c82da50962455bc9c.tar.gz gdb-0e7461c15fa5b400a978274c82da50962455bc9c.tar.bz2 |
New tests.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 12 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/loadaddr3.t | 16 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/loadaddr3a.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/loadaddr3b.d | 13 |
4 files changed, 50 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index d3cd2d2..0f948f0 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2006-08-29 Nathan Sidwell <nathan@codesourcery.com> + + * ld-elf/loadaddr3.t: New. + * ld-elf/loadaddr3a.d: New. + * ld-elf/loadaddr3b.d: New. + +2006-08-23 Alan Modra <amodra@bigpond.net.au> + + * ld-powerpc/plt1.s: New. + * ld-powerpc/plt1.d: New. + * ld-powerpc/powerpc.exp: Run it. + 2006-08-23 H.J. Lu <hongjiu.lu@intel.com> PR ld/3052 diff --git a/ld/testsuite/ld-elf/loadaddr3.t b/ld/testsuite/ld-elf/loadaddr3.t new file mode 100644 index 0000000..789f61e --- /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 0000000..395f286 --- /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 0000000..9096721 --- /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 |