pe-x86_64.c revision 214571
1214571Sdim/* BFD back-end for Intel/AMD x86_64 PECOFF files. 2214571Sdim Copyright 2006, 2007 Free Software Foundation, Inc. 3214571Sdim 4214571Sdim This file is part of BFD, the Binary File Descriptor library. 5214571Sdim 6214571Sdim This program is free software; you can redistribute it and/or modify 7214571Sdim it under the terms of the GNU General Public License as published by 8214571Sdim the Free Software Foundation; either version 2 of the License, or 9214571Sdim (at your option) any later version. 10214571Sdim 11214571Sdim This program is distributed in the hope that it will be useful, 12214571Sdim but WITHOUT ANY WARRANTY; without even the implied warranty of 13214571Sdim MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14214571Sdim GNU General Public License for more details. 15214571Sdim 16214571Sdim You should have received a copy of the GNU General Public License 17214571Sdim along with this program; if not, write to the Free Software 18214571Sdim Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. 19214571Sdim 20214571Sdim Written by Kai Tietz, OneVision Software GmbH&CoKg. */ 21214571Sdim 22214571Sdim#include "sysdep.h" 23214571Sdim#include "bfd.h" 24214571Sdim 25214571Sdim#define TARGET_SYM x86_64pe_vec 26214571Sdim#define TARGET_NAME "pe-x86-64" 27214571Sdim#define COFF_WITH_PE 28214571Sdim#define COFF_WITH_pex64 29214571Sdim#define PCRELOFFSET TRUE 30214571Sdim#define TARGET_UNDERSCORE '_' 31214571Sdim#define COFF_LONG_SECTION_NAMES 32214571Sdim#define COFF_SUPPORT_GNU_LINKONCE 33214571Sdim#define COFF_LONG_FILENAMES 34214571Sdim 35214571Sdim#define COFF_SECTION_ALIGNMENT_ENTRIES \ 36214571Sdim{ COFF_SECTION_NAME_EXACT_MATCH (".bss"), \ 37214571Sdim COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ 38214571Sdim{ COFF_SECTION_NAME_EXACT_MATCH (".data"), \ 39214571Sdim COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ 40214571Sdim{ COFF_SECTION_NAME_EXACT_MATCH (".rdata"), \ 41214571Sdim COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ 42214571Sdim{ COFF_SECTION_NAME_EXACT_MATCH (".text"), \ 43214571Sdim COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \ 44214571Sdim{ COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \ 45214571Sdim COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \ 46214571Sdim{ COFF_SECTION_NAME_EXACT_MATCH (".pdata"), \ 47214571Sdim COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \ 48214571Sdim{ COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \ 49214571Sdim COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \ 50214571Sdim{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi."), \ 51214571Sdim COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 } 52214571Sdim 53214571Sdim#include "coff-x86_64.c" 54