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 /ld/ldmisc.c | |
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 'ld/ldmisc.c')
-rw-r--r-- | ld/ldmisc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c index 4f25dbb15f..a2e496da9c 100644 --- a/ld/ldmisc.c +++ b/ld/ldmisc.c @@ -506,3 +506,14 @@ ld_abort (file, line, fn) einfo (_("%P%F: please report this bug\n")); xexit (1); } + +bfd_boolean +error_handler VPARAMS ((int id ATTRIBUTE_UNUSED, const char *fmt, ...)) +{ + VA_OPEN (arg, fmt); + VA_FIXEDARG (arg, const char *, fmt); + + vfinfo (stderr, fmt, arg); + VA_CLOSE (arg); + return TRUE; +} |