1 /* Definitions of target machine for GNU compiler. 2 Motorola 88100 in an 88open ABI environment. 3 Copyright (C) 1990, 1991, 2000, 2001 Free Software Foundation, Inc. 4 5 Written by Ron Guilmette (rfg@netcom.com). 6 Contributed to FSF by Network Computing Devices. 7 8 Other contributions by Vince Guarna (vguarna@urbana.mcd.mot.com), 9 Ray Essick (essick@i88.isc.com), Wilson Tien (wtien@urbana.mcd.mot.com), 10 and Tom Wood (Tom_Wood@NeXT.com) 11 12 This file is part of GNU CC. 13 14 GNU CC is free software; you can redistribute it and/or modify 15 it under the terms of the GNU General Public License as published by 16 the Free Software Foundation; either version 2, or (at your option) 17 any later version. 18 19 GNU CC is distributed in the hope that it will be useful, 20 but WITHOUT ANY WARRANTY; without even the implied warranty of 21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 GNU General Public License for more details. 23 24 You should have received a copy of the GNU General Public License 25 along with GNU CC; see the file COPYING. If not, write to 26 the Free Software Foundation, 59 Temple Place - Suite 330, 27 Boston, MA 02111-1307, USA. */ 28 29 /* DWARF_DEBUGGING_INFO defined in svr4.h. */ 30 31 #ifndef NO_BUGS 32 #define AS_BUG_DOT_LABELS 33 #define AS_BUG_POUND_TYPE 34 #endif 35 36 /* TODO: convert includes to ${tm_file} list in config.gcc. */ 37 #include "m88k/m88k.h" 38 39 /* Identify the compiler. */ 40 #undef VERSION_INFO1 41 #define VERSION_INFO1 "88open ABI" 42 43 /* Default switches */ 44 #undef TARGET_DEFAULT 45 #define TARGET_DEFAULT (MASK_CHECK_ZERO_DIV | \ 46 MASK_OCS_DEBUG_INFO | \ 47 MASK_SVR4) 48 49 /* Cpp spec. These pre-assertions are needed for SVR4 as they occur 50 often in the system header files. __svr4__ is our extension. */ 51 52 #undef CPP_PREDEFINES 53 #define CPP_PREDEFINES \ 54 "-Dm88000 -Dm88k -Dunix -D__svr4__ -Amachine=m88k -Acpu=m88k -Asystem=unix -Asystem=svr4" 55 56 /* For the AT&T SVR4 port, the function is _mcount. */ 57 #undef FUNCTION_PROFILER 58 #define FUNCTION_PROFILER(FILE, LABELNO) \ 59 output_function_profiler (FILE, LABELNO, "_mcount") 60 61 /* Override svr4.h and m88k.h. */ 62 #undef INIT_SECTION_ASM_OP 63 #define INIT_SECTION_ASM_OP "\tsection\t.init,\"xa\",#progbits" 64 #undef FINI_SECTION_ASM_OP 65 #define FINI_SECTION_ASM_OP "\tsection\t.fini,\"xa\",#progbits" 66 67 /* Define the pseudo-ops used to switch to the .ctors and .dtors sections. 68 69 Note that we want to give these sections the SHF_WRITE attribute 70 because these sections will actually contain data (i.e. tables of 71 addresses of functions in the current root executable or shared library 72 file) and, in the case of a shared library, the relocatable addresses 73 will have to be properly resolved/relocated (and then written into) by 74 the dynamic linker when it actually attaches the given shared library 75 to the executing process. (Note that on SVR4, you may wish to use the 76 `-z text' option to the ELF linker, when building a shared library, as 77 an additional check that you are doing everything right. But if you do 78 use the `-z text' option when building a shared library, you will get 79 errors unless the .ctors and .dtors sections are marked as writable 80 via the SHF_WRITE attribute.) */ 81 82 #undef CTORS_SECTION_ASM_OP 83 #define CTORS_SECTION_ASM_OP "\tsection\t.ctors,\"aw\"" 84 #undef DTORS_SECTION_ASM_OP 85 #define DTORS_SECTION_ASM_OP "\tsection\t.dtors,\"aw\"" 86