To satisfy latest CVS gcc:
[binutils-gdb.git] / ld / ldmisc.c
index 8fab22825f7add6f3aa29f374bbf3a269a43685d..267dff14bf2d52e1e60eb76c65608a42dd3d8ade 100644 (file)
@@ -536,3 +536,22 @@ print_nl ()
 {
   fprintf (config.map_file, "\n");
 }
+
+/* A more or less friendly abort message.  In ld.h abort is defined to
+   call this function.  */
+
+void
+ld_abort (file, line, fn)
+     const char *file;
+     int line;
+     const char *fn;
+{
+  if (fn != NULL)
+    einfo (_("%P: internal error: aborting at %s line %d in %s\n"),
+          file, line, fn);
+  else
+    einfo (_("%P: internal error: aborting at %s line %d\n"),
+          file, line);
+  einfo (_("%P%F: please report this bug\n"));
+  xexit (1);
+}