From e560f274e3a75b65dfc208d3ca261afd5b454292 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 10 Jun 2002 16:14:08 +0000 Subject: [PATCH] * 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. --- ld/testsuite/ChangeLog | 8 ++++++++ ld/testsuite/ld-mips-elf/mips-elf.exp | 2 ++ ld/testsuite/ld-mips-elf/region1.d | 11 +++++++++++ ld/testsuite/ld-mips-elf/region1.t | 12 ++++++++++++ ld/testsuite/ld-mips-elf/region1a.s | 3 +++ ld/testsuite/ld-mips-elf/region1b.s | 2 ++ 6 files changed, 38 insertions(+) create mode 100644 ld/testsuite/ld-mips-elf/region1.d create mode 100644 ld/testsuite/ld-mips-elf/region1.t create mode 100644 ld/testsuite/ld-mips-elf/region1a.s create mode 100644 ld/testsuite/ld-mips-elf/region1b.s diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 6d942d70e27..1e044bb9ace 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2002-06-10 Richard Sandiford + + * 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 * ld-scripts/phdrs2.s: Use .p2align instead of .align. diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index 3c4e79f1f56..798cb79c041 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -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" } } diff --git a/ld/testsuite/ld-mips-elf/region1.d b/ld/testsuite/ld-mips-elf/region1.d new file mode 100644 index 00000000000..4e65f53179b --- /dev/null +++ b/ld/testsuite/ld-mips-elf/region1.d @@ -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 diff --git a/ld/testsuite/ld-mips-elf/region1.t b/ld/testsuite/ld-mips-elf/region1.t new file mode 100644 index 00000000000..13077abeff8 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/region1.t @@ -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 +} diff --git a/ld/testsuite/ld-mips-elf/region1a.s b/ld/testsuite/ld-mips-elf/region1a.s new file mode 100644 index 00000000000..715a9860a92 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/region1a.s @@ -0,0 +1,3 @@ + .text + .global foo +foo: .4byte 1 diff --git a/ld/testsuite/ld-mips-elf/region1b.s b/ld/testsuite/ld-mips-elf/region1b.s new file mode 100644 index 00000000000..9a72c965611 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/region1b.s @@ -0,0 +1,2 @@ + .data + .4byte foo -- 2.30.2