diff options
Diffstat (limited to 'binutils/testsuite')
4 files changed, 20 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/mips/mips-reginfo-n32.d b/binutils/testsuite/binutils-all/mips/mips-reginfo-n32.d new file mode 100644 index 0000000..fe55e95 --- /dev/null +++ b/binutils/testsuite/binutils-all/mips/mips-reginfo-n32.d @@ -0,0 +1,7 @@ +#PROG: objcopy +#name: MIPS objcopy .reginfo section size (n32) +#as: -n32 -mips3 +#objcopy: --rename-section .foo=.reginfo +#source: mips-reginfo.s +#error: \A[^\n]*: Incorrect `\.reginfo' section size; expected 24, got 4\n +#error: [^\n]*: Bad value\Z diff --git a/binutils/testsuite/binutils-all/mips/mips-reginfo.d b/binutils/testsuite/binutils-all/mips/mips-reginfo.d new file mode 100644 index 0000000..7a8c1ca --- /dev/null +++ b/binutils/testsuite/binutils-all/mips/mips-reginfo.d @@ -0,0 +1,6 @@ +#PROG: objcopy +#name: MIPS objcopy .reginfo section size +#as: -32 +#objcopy: --rename-section .foo=.reginfo +#error: \A[^\n]*: Incorrect `\.reginfo' section size; expected 24, got 4\n +#error: [^\n]*: Bad value\Z diff --git a/binutils/testsuite/binutils-all/mips/mips-reginfo.s b/binutils/testsuite/binutils-all/mips/mips-reginfo.s new file mode 100644 index 0000000..75eaa94 --- /dev/null +++ b/binutils/testsuite/binutils-all/mips/mips-reginfo.s @@ -0,0 +1,2 @@ + .section .foo, "a" + .word 0xdeadbeef diff --git a/binutils/testsuite/binutils-all/mips/mips.exp b/binutils/testsuite/binutils-all/mips/mips.exp index be6e785..2167d4a 100644 --- a/binutils/testsuite/binutils-all/mips/mips.exp +++ b/binutils/testsuite/binutils-all/mips/mips.exp @@ -60,3 +60,8 @@ if $has_newabi { run_dump_test "mips-note-2r-n32" run_dump_test "mips-note-2r-n64" } + +run_dump_test "mips-reginfo" +if $has_newabi { + run_dump_test "mips-reginfo-n32" +} |