/* Definitions for ARM running ucLinux using ELF Copyright (C) 1999 Free Software Foundation, Inc. Contributed by Philip Blundell Modified by Vadim Lebedev This file is part of GNU CC. GNU CC 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, or (at your option) any later version. GNU CC 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; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "arm/linux-elf.h" #define ARM_FLAG_NO_GOT (1 << (ARM_FLAG_LAST_USED_BIT+1)) #define TARGET_NO_GOT (target_flags & ARM_FLAG_NO_GOT) #undef SUBTARGET_SWITCHES #define SUBTARGET_SWITCHES \ {"got", -ARM_FLAG_NO_GOT, ""}, \ {"no-got", ARM_FLAG_NO_GOT, "Do not use GOT relocations" },\ /* -mno-got will force -fPIC -msingle-pic-base */ #define ARM_SUBTARGET_OVERRIDE_OPTIONS \ if (TARGET_NO_GOT) \ { \ flag_pic = 2; \ target_flags |= ARM_FLAG_SINGLE_PIC_BASE; \ } /* We don't want a PLT. */ #undef NEED_PLT_RELOC #define NEED_PLT_RELOC 0 #undef NEED_GOT_RELOC #define NEED_GOT_RELOC (flag_pic && !TARGET_NO_GOT) #undef TARGET_VERSION #define TARGET_VERSION fputs (" (ARM/ELF ucLinux)", stderr); #undef TARGET_DEFAULT #define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_SOFT_FLOAT | \ ARM_FLAG_MMU_TRAPS | ARM_FLAG_NO_GOT) #undef MULTILIB_DEFAULTS #define MULTILIB_DEFAULTS \ { "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" } #undef ASM_FILE_START #define ASM_FILE_START(STREAM) \ do \ { \ extern char * version_string; \ fprintf (STREAM, "%s Generated by gcc %s for ARM/uClinux\n", \ ASM_COMMENT_START, version_string); \ output_file_directive (STREAM, main_input_filename); \ fprintf (STREAM, ASM_APP_OFF); \ } \ while (0)