summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2003-02-28 22:55:11 +0000
committerAlan Modra <amodra@bigpond.net.au>2003-02-28 22:55:11 +0000
commit4e3191ac867dc657a2e1e33d0f585c065348e3f1 (patch)
tree6a59dcf24437947b3a66d3e0d586f4a426edd13d
parent065d712802cbb8a0099b34941e54f559cc7f9ffe (diff)
downloadbinutils-redhat-4e3191ac867dc657a2e1e33d0f585c065348e3f1.tar.gz
* ldemul.c: Include getopt.h.
* emultempl/elf32.em: Include getopt.h earlier. * emultempl/ticoff.em: Likewise.
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/emultempl/elf32.em2
-rw-r--r--ld/emultempl/ticoff.em4
-rw-r--r--ld/ldemul.c3
4 files changed, 10 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6c702941ca..73746d6f70 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2003-03-01 Alan Modra <amodra@bigpond.net.au>
+
+ * ldemul.c: Include getopt.h.
+ * emultempl/elf32.em: Include getopt.h earlier.
+ * emultempl/ticoff.em: Likewise.
+
2003-02-28 Alan Modra <amodra@bigpond.net.au>
* emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 28bb8d8f8a..3d94a6688a 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -39,6 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "sysdep.h"
#include "libiberty.h"
#include "safe-ctype.h"
+#include "getopt.h"
#include "bfdlink.h"
@@ -51,7 +52,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "ldemul.h"
#include <ldgram.h>
#include "elf/common.h"
-#include "getopt.h"
static void gld${EMULATION_NAME}_before_parse
PARAMS ((void));
diff --git a/ld/emultempl/ticoff.em b/ld/emultempl/ticoff.em
index 620877ad14..90c940e497 100644
--- a/ld/emultempl/ticoff.em
+++ b/ld/emultempl/ticoff.em
@@ -27,18 +27,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "bfd.h"
#include "sysdep.h"
#include "bfdlink.h"
+#include "getopt.h"
#include "ld.h"
#include "ldmain.h"
#include "ldmisc.h"
-
#include "ldexp.h"
#include "ldlang.h"
#include "ldfile.h"
#include "ldemul.h"
-#include "getopt.h"
-
static int coff_version;
static void gld_${EMULATION_NAME}_before_parse PARAMS ((void));
diff --git a/ld/ldemul.c b/ld/ldemul.c
index dc087943b9..d1891270f9 100644
--- a/ld/ldemul.c
+++ b/ld/ldemul.c
@@ -1,5 +1,5 @@
/* ldemul.c -- clearing house for ld emulation states
- Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002
+ Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002, 2003
Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -21,6 +21,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "bfd.h"
#include "sysdep.h"
+#include "getopt.h"
#include "ld.h"
#include "ldmisc.h"