diff options
author | Alan Modra <amodra@gmail.com> | 2005-06-03 09:52:50 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-06-03 09:52:50 +0000 |
commit | e1fffbe6e9081f5d7b12fe6d591b00a8eb6d8897 (patch) | |
tree | 4646ba3ca5d13813ba6c21080270ce790bf545ec /bfd/elflink.c | |
parent | e09f16f93f8ca10018a2dc34fde35758effb6536 (diff) | |
download | gdb-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/elflink.c')
-rw-r--r-- | bfd/elflink.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 4a8e1dc..5dd5138 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -7087,14 +7087,10 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd) { BFD_ASSERT (r_symndx != 0); if (action & COMPLAIN) - { - (*_bfd_error_handler) - (_("`%s' referenced in section `%A' of %B: " - "defined in discarded section `%A' of %B"), - o, input_bfd, sec, sec->owner, sym_name); - bfd_set_error (bfd_error_bad_value); - return FALSE; - } + (*finfo->info->callbacks->einfo) + (_("%X`%s' referenced in section `%A' of %B: " + "defined in discarded section `%A' of %B"), + sym_name, o, input_bfd, sec, sec->owner); /* Try to do the best we can to support buggy old versions of gcc. If we've warned, or this is |