diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2003-04-24 01:43:33 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2003-04-24 01:43:33 +0000 |
commit | 480fa852f473f204922d438d39f540b6ea890cbf (patch) | |
tree | 08981f8ba71ccc51e33ab42b3f1cc6203d3b2b8d /include | |
parent | 93749c21f1e0f39b67164417fb6f218ccaf76221 (diff) | |
download | newlib-480fa852f473f204922d438d39f540b6ea890cbf.zip newlib-480fa852f473f204922d438d39f540b6ea890cbf.tar.gz newlib-480fa852f473f204922d438d39f540b6ea890cbf.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')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/bfdlink.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 37bf713..3d7ec5c 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -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 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 |