aboutsummaryrefslogtreecommitdiff
path: root/bfd/simple.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-06-03 09:52:50 +0000
committerAlan Modra <amodra@gmail.com>2005-06-03 09:52:50 +0000
commite1fffbe6e9081f5d7b12fe6d591b00a8eb6d8897 (patch)
tree4646ba3ca5d13813ba6c21080270ce790bf545ec /bfd/simple.c
parente09f16f93f8ca10018a2dc34fde35758effb6536 (diff)
downloadgdb-e1fffbe6e9081f5d7b12fe6d591b00a8eb6d8897.zip
gdb-e1fffbe6e9081f5d7b12fe6d591b00a8eb6d8897.tar.gz
gdb-e1fffbe6e9081f5d7b12fe6d591b00a8eb6d8897.tar.bz2
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 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;