* Makefile.in (emn10200.c): Add dependencies.
[deliverable/binutils-gdb.git] / ld / ldmain.c
index 13eb44875de5d6c644a0e3e920ff158f41994601..315ac0cacb7d8b189a64fec5eda853e59d836bea 100644 (file)
@@ -1,5 +1,5 @@
 /* Main program of GNU linker.
-   Copyright (C) 1991, 92, 93, 94, 1995 Free Software Foundation, Inc.
+   Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
    Written by Steve Chamberlain steve@cygnus.com
 
 This file is part of GLD, the Gnu Linker.
@@ -15,9 +15,9 @@ 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, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
-
+along with GLD; see the file COPYING.  If not, write to the Free
+Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.  */
 
 #include "bfd.h"
 #include "sysdep.h"
@@ -323,6 +323,8 @@ main (argc, argv)
     lang_map ();
   if (command_line.cref)
     output_cref (config.map_file != NULL ? config.map_file : stdout);
+  if (nocrossref_list != NULL)
+    check_nocrossrefs ();
 
   /* Even if we're producing relocateable output, some non-fatal errors should
      be reported in the exit status.  (What non-fatal errors, if any, do we
@@ -1031,6 +1033,9 @@ warning_callback (info, warning, symbol, abfd, section, address)
 
       if (! info.found)
        einfo ("%B: %s\n", abfd, warning);
+
+      if (entry == NULL)
+       free (asymbols);
     }
 
   return true;
@@ -1241,7 +1246,7 @@ notice (info, name, abfd, section, value)
           bfd_is_und_section (section) ? "reference to" : "definition of",
           name);
 
-  if (command_line.cref)
+  if (command_line.cref || nocrossref_list != NULL)
     add_cref (name, abfd, section, value);
 
   return true;
This page took 0.024449 seconds and 4 git commands to generate.