Back to index

cell-binutils  2.17cvs20070401
pe-x86_64.c
Go to the documentation of this file.
00001 /* BFD back-end for Intel/AMD x86_64 PECOFF 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_64pe_vec
00026 #define TARGET_NAME         "pe-x86-64"
00027 #define COFF_WITH_PE
00028 #define COFF_WITH_pex64
00029 #define PCRELOFFSET         TRUE
00030 #define TARGET_UNDERSCORE   '_'
00031 #define COFF_LONG_SECTION_NAMES
00032 #define COFF_SUPPORT_GNU_LINKONCE
00033 #define COFF_LONG_FILENAMES
00034 
00035 #define COFF_SECTION_ALIGNMENT_ENTRIES \
00036 { COFF_SECTION_NAME_EXACT_MATCH (".bss"), \
00037   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
00038 { COFF_SECTION_NAME_EXACT_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_EXACT_MATCH (".text"), \
00043   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
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-x86_64.c"