aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-08-21 11:42:57 +0000
committerAndreas Jaeger <aj@suse.de>2001-08-21 11:42:57 +0000
commit948f9114c9452486ff24644ca8b7828cdde06bee (patch)
tree3160a5a8d6b6bcc93ce4722d7e965845ab155983
parentc32144ff6becdde701335c5e42182163531a8611 (diff)
downloadfsf-binutils-gdb-948f9114c9452486ff24644ca8b7828cdde06bee.zip
fsf-binutils-gdb-948f9114c9452486ff24644ca8b7828cdde06bee.tar.gz
fsf-binutils-gdb-948f9114c9452486ff24644ca8b7828cdde06bee.tar.bz2
* deffilep.y: Add missing prototypes.
* pe-dll.c: Likewise.
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/deffilep.y8
-rw-r--r--ld/pe-dll.c26
3 files changed, 36 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 4af9b07..93a5d5d 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-21 Andreas Jaeger <aj@suse.de>
+
+ * deffilep.y: Add missing prototypes.
+ * pe-dll.c: Likewise.
+
2001-08-20 Alan Modra <amodra@bigpond.net.au>
* ldlang.c (insert_pad): Fix typos in last patch.
@@ -66,7 +71,7 @@
* ldgram.y (saved_script_handle): Initialize to NULL.
* ldmain.c (main): Change check on saved_script_handle.
-
+
2001-08-14 Alan Modra <amodra@bigpond.net.au>
* emultempl/elf32.em: Formatting fixes.
diff --git a/ld/deffilep.y b/ld/deffilep.y
index d6d32c8..e411831 100644
--- a/ld/deffilep.y
+++ b/ld/deffilep.y
@@ -1,6 +1,6 @@
%{ /* deffilep.y - parser for .def files */
-/* Copyright 1995, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright 1995, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -77,14 +77,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define yytable def_yytable
#define yycheck def_yycheck
-static int def_lex ();
-
static void def_description PARAMS ((const char *));
static void def_exports PARAMS ((const char *, const char *, int, int));
static void def_heapsize PARAMS ((int, int));
static void def_import
PARAMS ((const char *, const char *, const char *, const char *, int));
static void def_library PARAMS ((const char *, int));
+static def_file_module *def_stash_module PARAMS ((def_file *, char *));
static void def_name PARAMS ((const char *, int));
static void def_section PARAMS ((const char *, int));
static void def_section_alt PARAMS ((const char *, const char *));
@@ -93,6 +92,9 @@ static void def_version PARAMS ((int, int));
static void def_directive PARAMS ((char *));
static int def_parse PARAMS ((void));
static int def_error PARAMS ((const char *));
+static void put_buf PARAMS ((char));
+static int def_getc PARAMS ((void));
+static int def_ungetc PARAMS ((int));
static int def_lex PARAMS ((void));
static int lex_forced_token = 0;
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 8bbd8fd..e47a17f 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -1,5 +1,5 @@
/* Routines to help build PEI-format DLLs (Win32 etc)
- Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
+ Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
Written by DJ Delorie <dj@cygnus.com>
This file is part of GLD, the Gnu Linker.
@@ -260,6 +260,30 @@ static autofilter_entry_type autofilter_symbolsuffixlist[] = {
#define U(str) (pe_details->underscored ? "_" str : str)
+static int reloc_sort PARAMS ((const void *, const void *));
+static int pe_export_sort PARAMS ((const void *, const void *));
+static int auto_export PARAMS ((bfd *, def_file *, const char *));
+static void process_def_file PARAMS ((bfd *, struct bfd_link_info *));
+static void build_filler_bfd PARAMS ((int));
+static void generate_edata PARAMS ((bfd *, struct bfd_link_info *));
+static void fill_exported_offsets PARAMS ((bfd *, struct bfd_link_info *));
+static void fill_edata PARAMS ((bfd *, struct bfd_link_info *));
+static void generate_reloc PARAMS ((bfd *, struct bfd_link_info *));
+static void quoteput PARAMS ((char *, FILE *, int));
+static asection *quick_section PARAMS ((bfd *, const char *, int, int));
+static void quick_symbol
+ PARAMS ((bfd *, char *, char *, char *, asection *, int, int));
+static void quick_reloc PARAMS ((bfd *, int, int, int));
+static bfd *make_head PARAMS ((bfd *));
+static bfd *make_tail PARAMS ((bfd *));
+static bfd *make_one PARAMS ((def_file_export *, bfd *));
+static bfd *make_singleton_name_thunk PARAMS ((char *, bfd *));
+static char *make_import_fixup_mark PARAMS ((arelent *));
+static bfd *make_import_fixup_entry PARAMS ((char *, char *, char *, bfd *));
+static unsigned int pe_get16 PARAMS ((bfd *, int));
+static unsigned int pe_get32 PARAMS ((bfd *, int));
+static unsigned int pe_as32 PARAMS ((void *));
+
void
pe_dll_id_target (target)
const char *target;