aboutsummaryrefslogtreecommitdiff
path: root/bfd/pe-i386.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1995-05-13 18:03:25 +0000
committerSteve Chamberlain <sac@cygnus>1995-05-13 18:03:25 +0000
commitb297038d0b040fab7797bb8e1303f320f9b77ace (patch)
tree39244373088ef5341b454d41bed6538f4c813010 /bfd/pe-i386.c
parent9111b25a5b4b79138c8b73a3e33a1ecc9bb8d5fd (diff)
downloadgdb-b297038d0b040fab7797bb8e1303f320f9b77ace.zip
gdb-b297038d0b040fab7797bb8e1303f320f9b77ace.tar.gz
gdb-b297038d0b040fab7797bb8e1303f320f9b77ace.tar.bz2
Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
tekhex.c (first_phase): Understand type 0 symbols. (tekhex_write_object_contents): Fix typo in final record. Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com> pr ld/6840 * coff-i960.c (optcall_callback): don't try and optimize undefined refs. (coff_write_relocs): Search for broken relocs on the way out and fix them up. (coff_renumber_symbols): Calculate and return index of first undefined symbol. (coff_write_object_contents): Call coff_renumber_symbols and coff_write_relocs with the new args. * libcoff.h: (coff_renumber_symbols, coff_renumber_symbols): Modified prototypes. Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com> Tom Griest <griest@cs.yale.edu> Initial support for PE format. * Makefile.in, targets.c, configure.in, config.bfd: Add support for i386-*-winnt and i386-*-pe. * archive.c (do_slurp_coff_armap): Understand NTPE format archives. (_bfd_slurp_extended_name_table): Turn \ in a filename into /. * bfd-in.h (bfd_link_subsystem, _bfd_link_stack_heap): New. * coff-i386.c (howto_table): Conditionalize PCRELOFFSET. * coffcode.h (IMAGE_BASE): New. (coff_compute_section_file_positions): Throw away .junk sections for PE, align symbols. (coff_write_object_contents): Throw away .junk sections for PE. Remember info on .idata and .rsrc sections. Fill in the PE header. (coff_slurp_symbol_table): PE uses C_SECTION class. * cofflink.c (_bfd_coff_final_link): Keep PE info up to date. (_bfd_coff_generic_relocate_section): Cope with PE relocs. * coffswap.h (coff_swap_{aout/file/scn/sym}hdr_{in/out}): New code for PE headers.
Diffstat (limited to 'bfd/pe-i386.c')
-rw-r--r--bfd/pe-i386.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/bfd/pe-i386.c b/bfd/pe-i386.c
new file mode 100644
index 0000000..9e671e5
--- /dev/null
+++ b/bfd/pe-i386.c
@@ -0,0 +1,31 @@
+/* BFD back-end for Intel 386 PECOFF files.
+ Copyright 1995 Free Software Foundation, Inc.
+
+This file is part of BFD, the Binary File Descriptor library.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#include "bfd.h"
+#include "sysdep.h"
+
+
+#define TARGET_SYM i386pe_vec
+#define TARGET_NAME "pe-i386"
+
+#define COFF_OBJ_WITH_PE
+#define COFF_WITH_PE
+#define PCRELOFFSET true
+
+#include "coff-i386.c"