OSDN Git Service

include/
authorH.J. Lu <hjl@lucon.org>
Thu, 24 Apr 2003 01:43:33 +0000 (01:43 +0000)
committerH.J. Lu <hjl@lucon.org>
Thu, 24 Apr 2003 01:43:33 +0000 (01:43 +0000)
* bfdlink.h (bfd_link_callbacks): Add error_handler.

ld/

* ldmain.c (link_callbacks): Initialize error_handler.

* ldmisc.c (error_handler): New function.

* ldmisc.h (error_handler): New prototype.

include/ChangeLog
include/bfdlink.h

index 37bf713..3d7ec5c 100644 (file)
@@ -1,3 +1,7 @@
+2003-04-23  H.J. Lu <hjl@gnu.org>
+
+       * bfdlink.h (bfd_link_callbacks): Add error_handler.
+
 2003-04-04  Svein E. Seldal  <Svein.Seldal@solidas.com>
 
        * coff/tic4x.h: Namespace cleanup. Replace s/c4x/tic4x
index c258262..acb7449 100644 (file)
@@ -481,6 +481,11 @@ struct bfd_link_callbacks
   bfd_boolean (*notice)
     PARAMS ((struct bfd_link_info *, const char *name,
             bfd *abfd, asection *section, bfd_vma address));
+  /* A function which is called for reporting a linker error. ID is the
+     error identifier. The remaining input is the same as einfo () in
+     ld.  */
+  bfd_boolean (*error_handler)
+    PARAMS ((int id, const char * fmt, ...));
 };
 \f
 /* The linker builds link_order structures which tell the code how to