diff options
author | Alan Modra <modra@gmail.com> | 2005-06-03 09:52:47 +0000 |
---|---|---|
committer | Alan Modra <modra@gmail.com> | 2005-06-03 09:52:47 +0000 |
commit | d9f491a77d770b849045182efed1e07a2efd0563 (patch) | |
tree | 49fc2cdbf06fdc1ac1ff91e596e4902acd48303c | |
parent | d8a68f645a6d6af0a96f38c8e19d5e6c5a85c6f7 (diff) | |
download | cygnal-d9f491a77d770b849045182efed1e07a2efd0563.tar.gz cygnal-d9f491a77d770b849045182efed1e07a2efd0563.tar.bz2 cygnal-d9f491a77d770b849045182efed1e07a2efd0563.zip |
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.
-rw-r--r-- | include/ChangeLog | 6 | ||||
-rw-r--r-- | include/bfdlink.h | 13 |
2 files changed, 13 insertions, 6 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index ae00e32ee..2c105aae5 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2005-06-03 Alan Modra <amodra@bigpond.net.au> + + * bfdlink.h (struct bfd_link_callbacks): Add einfo. + 2005-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * libiberty.h (vsnprintf): Add format attribute. @@ -81,7 +85,7 @@ 2005-03-28 Mark Mitchell <mark@codesourcery.com> * libiberty.h (ffs): Declare, if necessary. - + 2005-03-27 Gabriel Dos Reis <gdr@integreable-solutions.net> * ternary.h: Don't use PARAMS anymore. diff --git a/include/bfdlink.h b/include/bfdlink.h index 28c88fb2f..a3a11fa63 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 |