aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmisc.c
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 /ld/ldmisc.c
parent6e94181b1eec688155f664b137f5332b9d1bdcad (diff)
downloadbinutils-0f0569c4ae6c593d573b2961438826fc80ae1e42.zip
binutils-0f0569c4ae6c593d573b2961438826fc80ae1e42.tar.gz
binutils-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 'ld/ldmisc.c')
-rw-r--r--ld/ldmisc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index 4f25dbb..a2e496d 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;
+}