diff options
author | H.J. Lu <hjl@lucon.org> | 2003-04-24 01:43:33 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2003-04-24 01:43:33 +0000 |
commit | 7888e8e469632f0f7f11ba6083f8d9a2607eb0d8 (patch) | |
tree | 0145f9b614d29a10633b01880bc482e8ed84ddea /include/bfdlink.h | |
parent | ca45c8e8ba06bffd1350f409c2a547a4987a7fca (diff) | |
download | binutils-redhat-7888e8e469632f0f7f11ba6083f8d9a2607eb0d8.tar.gz |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h index c25826207c..acb7449e52 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 |