aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-09-30 11:03:52 +0930
committerAlan Modra <amodra@gmail.com>2016-09-30 11:38:39 +0930
commit52d45da3f275b5d1c8ef2e96a7760585c736133b (patch)
tree2ead3ed78b4f3488034512473db1b9e3a965a629 /ld
parent1fcf3da985a9f4436674816046cf5a308eae74f3 (diff)
downloadbinutils-52d45da3f275b5d1c8ef2e96a7760585c736133b.zip
binutils-52d45da3f275b5d1c8ef2e96a7760585c736133b.tar.gz
binutils-52d45da3f275b5d1c8ef2e96a7760585c736133b.tar.bz2
Make bfd_error_handler_type like vprintf
It was like printf, which means you can't use bfd_set_error_handler to hook in a function to do something and then call the original handler. The patch also deletes some unused functions and makes pointers local. bfd/ * bfd-in.h: Include stdarg.h. * bfd.c (bfd_error_handler_type): Make like vprintf. (_bfd_error_internal): Rename from _bfd_error_handler. Make static. (error_handler_internal): New function, split out from.. (_bfd_default_error_handler): ..here. Rename to _bfd_error_handler. (bfd_set_error_handler): Update. (bfd_get_error_handler, bfd_get_assert_handler): Delete. (_bfd_assert_handler): Make static. * coffgen.c (null_error_handler): Update params. * elf-bfd.h (struct elf_backend_data <link_order_error_handler>): Don't use bfd_error_handler_type. * elf64-mmix.c (mmix_dump_bpo_gregs): Likewise. * elfxx-target.h (elf_backend_link_order_error_handler): Default to _bfd_error_handler. * libbfd-in.h (_bfd_default_error_handler): Don't declare. (bfd_assert_handler_type): Likewise. (_bfd_error_handler): Update. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. ld/ * ldlang.c (ignore_bfd_errors): Update params.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldlang.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index c5367a3..3d08e3c 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2016-09-30 Alan Modra <amodra@gmail.com>
+
+ * ldlang.c (ignore_bfd_errors): Update params.
+
2016-09-29 H.J. Lu <hongjiu.lu@intel.com>
PR ld/20528
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 07c2182..0a38d0b 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -5984,7 +5984,8 @@ lang_end (void)
BFD. */
static void
-ignore_bfd_errors (const char *s ATTRIBUTE_UNUSED, ...)
+ignore_bfd_errors (const char *fmt ATTRIBUTE_UNUSED,
+ va_list ap ATTRIBUTE_UNUSED)
{
/* Don't do anything. */
}