Back to index

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