15480Swollman/* BFD back-end for Intel 386 PECOFF files.
250476Speter   Copyright 1995, 1996, 1999, 2001, 2002, 2004, 2005, 2006, 2007
31638Srgrimes   Free Software Foundation, Inc.
4156813Sru
5156813Sru   This file is part of BFD, the Binary File Descriptor library.
65480Swollman
735155Sjkh   This program is free software; you can redistribute it and/or modify
85480Swollman   it under the terms of the GNU General Public License as published by
91638Srgrimes   the Free Software Foundation; either version 3 of the License, or
105480Swollman   (at your option) any later version.
115480Swollman
121638Srgrimes   This program is distributed in the hope that it will be useful,
13124750Sru   but WITHOUT ANY WARRANTY; without even the implied warranty of
14124750Sru   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15124750Sru   GNU General Public License for more details.
16124750Sru
17124750Sru   You should have received a copy of the GNU General Public License
18124750Sru   along with this program; if not, write to the Free Software
19124750Sru   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20124750Sru   MA 02110-1301, USA.  */
21239739Sjhb
22124750Sru#include "sysdep.h"
23124750Sru#include "bfd.h"
24124750Sru
25124750Sru#define TARGET_SYM 		i386pe_vec
261638Srgrimes#define TARGET_NAME 		"pe-i386"
27156813Sru#define COFF_WITH_PE
28124750Sru#define PCRELOFFSET 		TRUE
2986252Sgshapiro#define TARGET_UNDERSCORE 	'_'
3086252Sgshapiro#define COFF_LONG_SECTION_NAMES
31239739Sjhb#define COFF_SUPPORT_GNU_LINKONCE
32239739Sjhb#define COFF_LONG_FILENAMES
33239739Sjhb
34239739Sjhb#define COFF_SECTION_ALIGNMENT_ENTRIES \
351638Srgrimes{ COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \
36  COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
37{ COFF_SECTION_NAME_EXACT_MATCH (".pdata"), \
38  COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
39{ COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
40  COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
41{ COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi."), \
42  COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }
43
44#include "coff-i386.c"
45