From e1fffbe6e9081f5d7b12fe6d591b00a8eb6d8897 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 3 Jun 2005 09:52:50 +0000 Subject: include/ * bfdlink.h (struct bfd_link_callbacks): Add einfo. bfd/ * configure.in: Bump version * configure: Regenerate. * elflink.c (elf_link_input_bfd): Use einfo linker callback to print discarded section sym refs and kill linker output. * simple.c (simple_dummy_einfo): New function. (bfd_simple_get_relocated_section_contents): Init callbacks.einfo. ld/ * ldmain.c (link_callbacks): Add einfo. (add_archive_element): Use passed info, not link_info. (constructor_callback): Likewise. (reloc_overflow): Don't handle null bfd specially. (reloc_dangerous, unattached_reloc): Likewise. * ldmisc.c (vfinfo ): Print "ld generated" for null bfd. (vfinfo ): Handle null bfd. Wrap comments. --- bfd/simple.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bfd/simple.c') diff --git a/bfd/simple.c b/bfd/simple.c index 18ee9a3..d06ce2a 100644 --- a/bfd/simple.c +++ b/bfd/simple.c @@ -92,6 +92,11 @@ simple_dummy_multiple_definition (struct bfd_link_info *link_info ATTRIBUTE_UNUS return TRUE; } +static void +simple_dummy_einfo (const char *fmt ATTRIBUTE_UNUSED, ...) +{ +} + struct saved_output_info { bfd_vma offset; @@ -187,6 +192,7 @@ bfd_simple_get_relocated_section_contents (bfd *abfd, callbacks.reloc_dangerous = simple_dummy_reloc_dangerous; callbacks.unattached_reloc = simple_dummy_unattached_reloc; callbacks.multiple_definition = simple_dummy_multiple_definition; + callbacks.einfo = simple_dummy_einfo; memset (&link_order, 0, sizeof (link_order)); link_order.next = NULL; -- cgit v1.1