aboutsummaryrefslogtreecommitdiff
path: root/include/bfdlink.h
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 /include/bfdlink.h
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 'include/bfdlink.h')
-rw-r--r--include/bfdlink.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h
index 28c88fb..a3a11fa 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -422,11 +422,11 @@ struct bfd_link_info
};
/* This structures holds a set of callback functions. These are
- called by the BFD linker routines. The first argument to each
- callback function is the bfd_link_info structure being used. Each
- function returns a boolean value. If the function returns FALSE,
- then the BFD function which called it will return with a failure
- indication. */
+ called by the BFD linker routines. Except for einfo, the first
+ argument to each callback function is the bfd_link_info structure
+ being used and each function returns a boolean value. If the
+ function returns FALSE, then the BFD function which called it should
+ return with a failure indication. */
struct bfd_link_callbacks
{
@@ -535,6 +535,9 @@ struct bfd_link_callbacks
bfd_boolean (*notice)
(struct bfd_link_info *, const char *name,
bfd *abfd, asection *section, bfd_vma address);
+ /* General link info message. */
+ void (*einfo)
+ (const char *fmt, ...);
};
/* The linker builds link_order structures which tell the code how to