aboutsummaryrefslogtreecommitdiff
path: root/include/bfdlink.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-04-24 01:43:33 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-04-24 01:43:33 +0000
commit0f0569c4ae6c593d573b2961438826fc80ae1e42 (patch)
treea2593bb53ea21de93bdc0a05bc6cc8ffefbd3601 /include/bfdlink.h
parent6e94181b1eec688155f664b137f5332b9d1bdcad (diff)
downloadgdb-0f0569c4ae6c593d573b2961438826fc80ae1e42.zip
gdb-0f0569c4ae6c593d573b2961438826fc80ae1e42.tar.gz
gdb-0f0569c4ae6c593d573b2961438826fc80ae1e42.tar.bz2
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 c258262..acb7449 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