]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix for ld
authorTom Rix <trix@redhat.com>
Wed, 15 Aug 2001 17:10:18 +0000 (17:10 +0000)
committerTom Rix <trix@redhat.com>
Wed, 15 Aug 2001 17:10:18 +0000 (17:10 +0000)
ld/ChangeLog
ld/ldgram.y
ld/ldmain.c

index 01c0a859da2d606e908060685954db738065b22a..b8a5cac67cfa4c2bae76c2e394aa2ea037a668c5 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-15  Tom Rix <trix@redhat.com>
+
+       * 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.
index f9c6058feaadcd7eb9ae56df49074f68c9c691c9..a823bab76863d01732a2197176bb114b9ee9be64 100644 (file)
@@ -50,7 +50,7 @@ static enum section_type sectype;
 lang_memory_region_type *region;
 
 boolean ldgram_want_filename = true;
-FILE *  saved_script_handle = false;
+FILE *  saved_script_handle = NULL;
 boolean force_make_executable = false;
 
 boolean ldgram_in_script = false;
index 849e0ae2ef74a42a923bfb624ac2f16662db193b..0ec7891891c412e32b0c20da1d60590ef7346a37 100644 (file)
@@ -298,7 +298,7 @@ main (argc, argv)
 
   /* If we have not already opened and parsed a linker script
      read the emulation's appropriate default script.  */
-  if (saved_script_handle == false)
+  if (saved_script_handle == NULL)
     {
       int isfile;
       char *s = ldemul_get_script (& isfile);