Back to index

cell-binutils  2.17cvs20070401
pei-x86_64.c
Go to the documentation of this file.
00001 /* BFD back-end for Intel 386 PE IMAGE COFF files.
00002    Copyright 2006 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    Written by Kai Tietz, OneVision Software GmbH&CoKg.  */
00021 
00022 #include "bfd.h"
00023 #include "sysdep.h"
00024 
00025 #define TARGET_SYM          x86_64pei_vec
00026 #define TARGET_NAME         "pei-x86-64"
00027 #define COFF_IMAGE_WITH_PE
00028 #define COFF_WITH_PE
00029 #define COFF_WITH_pex64
00030 #define PCRELOFFSET         TRUE
00031 #define TARGET_UNDERSCORE   '_'
00032 #define COFF_LONG_SECTION_NAMES
00033 #define COFF_SUPPORT_GNU_LINKONCE
00034 #define COFF_LONG_FILENAMES
00035 
00036 #define COFF_SECTION_ALIGNMENT_ENTRIES \
00037 { COFF_SECTION_NAME_EXACT_MATCH (".bss"), \
00038   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
00039 { COFF_SECTION_NAME_EXACT_MATCH (".data"), \
00040   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
00041 { COFF_SECTION_NAME_EXACT_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 (".idata"), \
00046   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
00047 { COFF_SECTION_NAME_EXACT_MATCH (".pdata"), \
00048   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
00049 { COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
00050   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
00051 { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi."), \
00052   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }
00053 
00054 #include "coff-x86_64.c"