diff options
author | Alan Modra <amodra@gmail.com> | 2018-06-01 11:00:46 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-06-01 13:10:33 +0930 |
commit | 030157d8a65afcc6292a4d3d183b816ed2ff7c57 (patch) | |
tree | 27844b4acc7f05aed8c429f135be92476df67cf5 /bfd/bfd.c | |
parent | 61a9a607b5f515c50c0a13d7e1b6bdf9d20d295e (diff) | |
download | fsf-binutils-gdb-030157d8a65afcc6292a4d3d183b816ed2ff7c57.zip fsf-binutils-gdb-030157d8a65afcc6292a4d3d183b816ed2ff7c57.tar.gz fsf-binutils-gdb-030157d8a65afcc6292a4d3d183b816ed2ff7c57.tar.bz2 |
Make _bfd_error_handler available outside libbfd
Needed when building libopcodes.so.
bfd/
* bfd.c (_bfd_error_handler): Arrange for this function to be
declared in bfd-in2.h.
* libbfd-in.h (_bfd_error_handler): Don't declare.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
opcodes/
* sysdep.h (_bfd_error_handler): Don't declare.
* msp430-decode.opc: Include bfd.h. Don't include ansidecl.h here.
* rl78-decode.opc: Likewise.
* msp430-decode.c: Regenerate.
* rl78-decode.c: Regenerate.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r-- | bfd/bfd.c | 28 |
1 files changed, 20 insertions, 8 deletions
@@ -1087,14 +1087,6 @@ _bfd_doprnt_scan (const char *format, union _bfd_doprnt_args *args) return arg_count; } -/* This is the default routine to handle BFD error messages. - Like fprintf (stderr, ...), but also handles some extra format specifiers. - - %pA section name from section. For group components, prints group name too. - %pB file name from bfd. For archive components, prints archive too. - - Beware: Only supports a maximum of 9 format arguments. */ - static void error_handler_internal (const char *fmt, va_list ap) { @@ -1156,6 +1148,26 @@ error_handler_internal (const char *fmt, va_list ap) static bfd_error_handler_type _bfd_error_internal = error_handler_internal; +/* +FUNCTION + _bfd_error_handler + +SYNOPSIS + void _bfd_error_handler (const char *fmt, ...) ATTRIBUTE_PRINTF_1; + +DESCRIPTION + This is the default routine to handle BFD error messages. + Like fprintf (stderr, ...), but also handles some extra format + specifiers. + + %pA section name from section. For group components, prints + group name too. + %pB file name from bfd. For archive components, prints + archive too. + + Beware: Only supports a maximum of 9 format arguments. +*/ + void _bfd_error_handler (const char *fmt, ...) { |