summaryrefslogtreecommitdiff
path: root/bfd/simple.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-06-03 09:52:50 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-06-03 09:52:50 +0000
commit8a51ad1c99880dd97d58945f122e0458a66e379a (patch)
treeb7073f5d66e716bdd29e3f155d9a3dd63ab9aab6 /bfd/simple.c
parent8dcd229879a6d91521c0c625d22ce434a3750e11 (diff)
downloadbinutils-redhat-8a51ad1c99880dd97d58945f122e0458a66e379a.tar.gz
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 <B>): Print "ld generated" for null bfd. (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
Diffstat (limited to 'bfd/simple.c')
-rw-r--r--bfd/simple.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/simple.c b/bfd/simple.c
index 18ee9a3f45..d06ce2a96e 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;