Back to index

cell-binutils  2.17cvs20070401
pei-arm.c
Go to the documentation of this file.
00001 /* BFD back-end for arm PE IMAGE COFF files.
00002    Copyright 1995, 1996, 1999, 2002 Free Software Foundation, Inc.
00003 
00004 This file is part of BFD, the Binary File Descriptor library.
00005 
00006 This program is free software; you can redistribute it and/or modify
00007 it under the terms of the GNU General Public License as published by
00008 the Free Software Foundation; either version 2 of the License, or
00009 (at your option) any later version.
00010 
00011 This program is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with this program; if not, write to the Free Software
00018 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00019 
00020 #include "bfd.h"
00021 #include "sysdep.h"
00022 
00023 #ifndef TARGET_LITTLE_SYM
00024 #define TARGET_LITTLE_SYM  armpei_little_vec
00025 #define TARGET_LITTLE_NAME "pei-arm-little"
00026 #define TARGET_BIG_SYM     armpei_big_vec
00027 #define TARGET_BIG_NAME    "pei-arm-big"
00028 #endif
00029 
00030 #define COFF_IMAGE_WITH_PE
00031 #define COFF_WITH_PE
00032 #define PCRELOFFSET        TRUE
00033 #define COFF_LONG_SECTION_NAMES
00034 
00035 #define COFF_SECTION_ALIGNMENT_ENTRIES \
00036 { COFF_SECTION_NAME_EXACT_MATCH (".bss"), \
00037   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
00038 { COFF_SECTION_NAME_EXACT_MATCH (".data"), \
00039   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
00040 { COFF_SECTION_NAME_EXACT_MATCH (".rdata"), \
00041   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
00042 { COFF_SECTION_NAME_EXACT_MATCH (".text"), \
00043   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
00044 { COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \
00045   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
00046 { COFF_SECTION_NAME_EXACT_MATCH (".pdata"), \
00047   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
00048 { COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
00049   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
00050 { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi."), \
00051   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }
00052 
00053 #include "coff-arm.c"