Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-04-24 05:43:33 +0400
committerH.J. Lu <hjl.tools@gmail.com>2003-04-24 05:43:33 +0400
commit480fa852f473f204922d438d39f540b6ea890cbf (patch)
tree08981f8ba71ccc51e33ab42b3f1cc6203d3b2b8d /include/bfdlink.h
parent93749c21f1e0f39b67164417fb6f218ccaf76221 (diff)
include/
* 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.
Diffstat (limited to 'include/bfdlink.h')
-rw-r--r--include/bfdlink.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h
index c25826207..acb7449e5 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -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, ...));
};
/* The linker builds link_order structures which tell the code how to