* mipsread.c: Pass NULL name pointer to init_type, not 0.
[deliverable/binutils-gdb.git] / ld / ldtemplate
index 50130eb209afaae6f0c412602da616c549e103cf..961fbc02e545b6691ded70711ba6888d7698e494 100755 (executable)
@@ -5,39 +5,35 @@
  * In that DO NOT EDIT the file; edit ldtemplate instead.
  */
 
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* emulate the original gld for the given <TARGET>
+   Copyright (C) 1991 Free Software Foundation, Inc.
+   Written by Steve Chamberlain steve@cygnus.com
 
 This file is part of GLD, the Gnu Linker.
 
-GLD is free software; you can redistribute it and/or modify
+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 1, or (at your option)
-any later version.
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
 
-GLD is distributed in the hope that it will be useful,
+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 GLD; see the file COPYING.  If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /*
  *  $Id:#
-*/
-
-/* 
- * emulate the original gld for the given <TARGET>
- *
- * Written by Steve Chamberlain steve@cygnus.com
  */
 
 #define TARGET_IS_<TARGET>
 
-#include "sysdep.h"
-#include "bfd.h"
 
+#include "bfd.h"
+#include "sysdep.h"
 #include "ld.h"
 #include "config.h"
 #include "ldemul.h"
@@ -61,9 +57,6 @@ static void gld<target>_before_parse()
   extern char lprefix;
   lprefix = '@';
 #else
-  ldfile_add_library_path("/lib");
-  ldfile_add_library_path("/usr/lib");
-  ldfile_add_library_path("/usr/local/lib");
 #ifndef TARGET_ /* I.e., if not generic */
   ldfile_output_architecture = bfd_arch_<arch>;
 #endif
@@ -129,6 +122,12 @@ static char *gld<target>_script_option_Ur  =
 static char *gld<target>_script_option_r  =  
 #include "<ldtarget>.xr"
 ;
+static char *gld<target>_script_option_n  =  /* Used with -n flag. */
+#include "<ldtarget>.xn"
+;
+static char *gld<target>_script_option_N  =  /* Used with -N flag. */
+#include "<ldtarget>.xN"
+;
 
 static char *gld<target>_get_script()
 {                           
@@ -137,10 +136,13 @@ static char *gld<target>_get_script()
       config.build_constructors == true) {
     return gld<target>_script_option_Ur;
   }
-  if (config.relocateable_output) {
+  if (config.relocateable_output == true) {
     return gld<target>_script_option_r;
   }
-       
+  if (!config.text_read_only)
+    return gld<target>_script_option_N;
+  if (!config.magic_demand_paged)
+    return gld<target>_script_option_n;
   return gld<target>_script;
 }
 struct ld_emulation_xfer_struct ld_gld<target>_emulation = 
This page took 0.023422 seconds and 4 git commands to generate.