From: nobody <> Date: Wed, 16 Aug 2006 10:32:41 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'binutils-csl- X-Git-Tag: binutils-csl-renesas-4_1-8~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c703036b9258a5404ebf81235b9629f53b2f75cb;p=thirdparty%2Fbinutils-gdb.git This commit was manufactured by cvs2svn to create branch 'binutils-csl- 2_17-branch'. Cherrypick from master 2006-08-16 10:32:40 UTC Julian Brown ' * gas/arm/noarm.s: Add test for disabled ARM insns.': gas/testsuite/gas/arm/noarm.d gas/testsuite/gas/arm/noarm.l gas/testsuite/gas/arm/noarm.s ld/emultempl/mipself.em ld/testsuite/ld-mips-elf/hash1.s ld/testsuite/ld-mips-elf/hash1a.d ld/testsuite/ld-mips-elf/hash1b.d ld/testsuite/ld-mips-elf/hash1c.d --- diff --git a/gas/testsuite/gas/arm/noarm.d b/gas/testsuite/gas/arm/noarm.d new file mode 100644 index 00000000000..ae34f8342f9 --- /dev/null +++ b/gas/testsuite/gas/arm/noarm.d @@ -0,0 +1,3 @@ +# name: Disallow ARM instructions on V7M +# as: +# error-output: noarm.l diff --git a/gas/testsuite/gas/arm/noarm.l b/gas/testsuite/gas/arm/noarm.l new file mode 100644 index 00000000000..edc59a2d537 --- /dev/null +++ b/gas/testsuite/gas/arm/noarm.l @@ -0,0 +1,3 @@ +[^:]*: Assembler messages: +[^:]*:12: Error: selected processor does not support ARM opcodes +[^:]*:13: Error: attempt to use an ARM instruction on a Thumb-only processor -- `nop' diff --git a/gas/testsuite/gas/arm/noarm.s b/gas/testsuite/gas/arm/noarm.s new file mode 100644 index 00000000000..3dadd4468f1 --- /dev/null +++ b/gas/testsuite/gas/arm/noarm.s @@ -0,0 +1,13 @@ + .arch armv7a + .syntax unified + .text +func: + nop + movw r0, #0 + + .arch armv7 + .thumb + nop + movw r0, #0 + .arm + nop diff --git a/ld/emultempl/mipself.em b/ld/emultempl/mipself.em new file mode 100644 index 00000000000..846cdc51dbb --- /dev/null +++ b/ld/emultempl/mipself.em @@ -0,0 +1,37 @@ +# This shell script emits a C file. -*- C -*- +# Copyright 2006 Free Software Foundation, Inc. +# +# This file is part of GLD, the Gnu Linker. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + +cat >>e${EMULATION_NAME}.c <