Back to index

cell-binutils  2.17cvs20070401
pei-i386.c
Go to the documentation of this file.
00001 /* BFD back-end for Intel 386 PE IMAGE COFF files.
00002    Copyright 1995, 1996, 1999, 2002, 2004 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 #define TARGET_SYM          i386pei_vec
00024 #define TARGET_NAME         "pei-i386"
00025 #define COFF_IMAGE_WITH_PE
00026 #define COFF_WITH_PE
00027 #define PCRELOFFSET         TRUE
00028 #define TARGET_UNDERSCORE   '_'
00029 #define COFF_LONG_SECTION_NAMES
00030 #define COFF_SUPPORT_GNU_LINKONCE
00031 #define COFF_LONG_FILENAMES
00032 
00033 #define COFF_SECTION_ALIGNMENT_ENTRIES \
00034 { COFF_SECTION_NAME_EXACT_MATCH (".bss"), \
00035   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
00036 { COFF_SECTION_NAME_EXACT_MATCH (".data"), \
00037   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
00038 { COFF_SECTION_NAME_PARTIAL_MATCH (".data$"), \
00039   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
00040 { COFF_SECTION_NAME_EXACT_MATCH (".rdata"), \
00041   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
00042 { COFF_SECTION_NAME_PARTIAL_MATCH (".rdata$"), \
00043   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
00044 { COFF_SECTION_NAME_EXACT_MATCH (".text"), \
00045   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
00046 { COFF_SECTION_NAME_PARTIAL_MATCH (".text$"), \
00047   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
00048 { COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \
00049   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
00050 { COFF_SECTION_NAME_EXACT_MATCH (".pdata"), \
00051   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
00052 { COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
00053   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
00054 { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi."), \
00055   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }
00056 
00057 #include "coff-i386.c"