New tests.
This commit is contained in:
parent
a803651292
commit
0e7461c15f
4 changed files with 50 additions and 0 deletions
|
@ -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
|
||||
|
|
16
ld/testsuite/ld-elf/loadaddr3.t
Normal file
16
ld/testsuite/ld-elf/loadaddr3.t
Normal file
|
@ -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/ : { *(.*) }
|
||||
}
|
9
ld/testsuite/ld-elf/loadaddr3a.d
Normal file
9
ld/testsuite/ld-elf/loadaddr3a.d
Normal file
|
@ -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
|
13
ld/testsuite/ld-elf/loadaddr3b.d
Normal file
13
ld/testsuite/ld-elf/loadaddr3b.d
Normal file
|
@ -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
|
Loading…
Reference in a new issue