* ld-mips-elf/region1a.s,
* ld-mips-elf/region1b.s, * ld-mips-elf/region1.t, * ld-mips-elf/region1.d: New test. * ld-mips-elf/mips-elf.exp: Run it.
This commit is contained in:
parent
e052cfbe68
commit
e560f274e3
6 changed files with 38 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2002-06-10 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* ld-mips-elf/region1a.s,
|
||||
* ld-mips-elf/region1b.s,
|
||||
* ld-mips-elf/region1.t,
|
||||
* ld-mips-elf/region1.d: New test.
|
||||
* ld-mips-elf/mips-elf.exp: Run it.
|
||||
|
||||
2002-06-07 Nick Clifton <nickc@cambridge.redhat.com>
|
||||
|
||||
* ld-scripts/phdrs2.s: Use .p2align instead of .align.
|
||||
|
|
|
@ -38,5 +38,7 @@ if { [istarget mips*-*-*] } then {
|
|||
# Check generation of embedded relocs section.
|
||||
run_dump_test "emrelocs-eb"
|
||||
run_dump_test "emrelocs-el"
|
||||
|
||||
run_dump_test "region1"
|
||||
}
|
||||
}
|
||||
|
|
11
ld/testsuite/ld-mips-elf/region1.d
Normal file
11
ld/testsuite/ld-mips-elf/region1.d
Normal file
|
@ -0,0 +1,11 @@
|
|||
# as: -mabi=eabi -mips1 -G0
|
||||
# source: region1a.s
|
||||
# source: region1b.s
|
||||
# ld: -T region1.t
|
||||
# name: MIPS region1
|
||||
# objdump: --headers
|
||||
#...
|
||||
0 \.text +0+004 +0+10000 .*
|
||||
#...
|
||||
1 \.data +0+004 +0+20000 .*
|
||||
#pass
|
12
ld/testsuite/ld-mips-elf/region1.t
Normal file
12
ld/testsuite/ld-mips-elf/region1.t
Normal file
|
@ -0,0 +1,12 @@
|
|||
MEMORY
|
||||
{
|
||||
TEXTMEM : ORIGIN = 0x10000, LENGTH = 32K
|
||||
DATAMEM : ORIGIN = 0x20000, LENGTH = 32K
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.text : { *(.text) } > TEXTMEM
|
||||
.data : { *(.data) } > DATAMEM
|
||||
.bss : { *(.bss) } > DATAMEM
|
||||
}
|
3
ld/testsuite/ld-mips-elf/region1a.s
Normal file
3
ld/testsuite/ld-mips-elf/region1a.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
.text
|
||||
.global foo
|
||||
foo: .4byte 1
|
2
ld/testsuite/ld-mips-elf/region1b.s
Normal file
2
ld/testsuite/ld-mips-elf/region1b.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.data
|
||||
.4byte foo
|
Loading…
Reference in a new issue