1 /* Define symbol to recognize CRIS ABI version 2, for a.out use. 2 Contributed by Axis Communications. 3 Written by Hans-Peter Nilsson <hp@axis.se>, c:a 1992. 4 5 Copyright (C) 2000, 2001 Free Software Foundation, Inc. 6 7 This file is part of GCC. 8 9 GCC is free software; you can redistribute it and/or modify it 10 under the terms of the GNU General Public License as published by the 11 Free Software Foundation; either version 2, or (at your option) any 12 later version. 13 14 In addition to the permissions in the GNU General Public License, the 15 Free Software Foundation gives you unlimited permission to link the 16 compiled version of this file with other programs, and to distribute 17 those programs without any restriction coming from the use of this 18 file. (The General Public License restrictions do apply in other 19 respects; for example, they cover modification of the file, and 20 distribution when not linked into another program.) 21 22 This file is distributed in the hope that it will be useful, but 23 WITHOUT ANY WARRANTY; without even the implied warranty of 24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 25 General Public License for more details. 26 27 You should have received a copy of the GNU General Public License 28 along with this program; see the file COPYING. If not, write to 29 the Free Software Foundation, 59 Temple Place - Suite 330, 30 Boston, MA 02111-1307, USA. 31 32 As a special exception, if you link this library with files, some of 33 which are compiled with GCC, this library does not by itself cause 34 the resulting object or executable to be covered by the GNU General 35 Public License. 36 This exception does not however invalidate any other reasons why 37 the executable file or object might be covered by the GNU General 38 Public License. */ 39 40 #include "config.h" 41 42 #ifdef __AOUT__ 43 44 /* ELF support was not released before the ABI was changed, so we 45 restrict this awkwardness to a.out. This symbol is for gdb to 46 recognize, so it can debug both old and new programs successfully. */ 47 __asm__ (".global " CRIS_ABI_VERSION_SYMBOL_STRING); 48 __asm__ (".set " CRIS_ABI_VERSION_SYMBOL_STRING ",0"); 49 50 #else /* not __AOUT__ */ 51 52 /* The file must not be empty (declaration/definition-wise) according to 53 ISO, IIRC. */ 54 extern int _Dummy; 55 56 #endif /* not __AOUT__ */ 57