]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
authorAlan Modra <amodra@gmail.com>
Mon, 7 Oct 2002 00:15:53 +0000 (00:15 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 7 Oct 2002 00:15:53 +0000 (00:15 +0000)
code.

bfd/ChangeLog
bfd/elflink.h

index 9d70814c41afbc7d6301ac09efb8de3dd22108f3..e7b48ca3aaf1e4d731be0635754b3baa62b21828 100644 (file)
@@ -1,5 +1,8 @@
 2002-10-07  Alan Modra  <amodra@bigpond.net.au>
 
+       * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
+       code.
+
        * elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.
 
 2002-09-28  Alan Modra  <amodra@bigpond.net.au>
index 251bd21ab384a07678a1ed161867b4395a48b4c7..25519b1fd22b1cf0e7263e780b2083d5e7ce6d8b 100644 (file)
@@ -6812,20 +6812,12 @@ elf_link_input_bfd (finfo, input_bfd)
                           || h->root.type == bfd_link_hash_defweak)
                          && elf_discarded_section (h->root.u.def.section))
                        {
-#if BFD_VERSION_DATE < 20031005
                          if ((o->flags & SEC_DEBUGGING) != 0)
                            {
-#if BFD_VERSION_DATE > 20021005
-                             (*finfo->info->callbacks->warning)
-                               (finfo->info,
-                                _("warning: relocation against removed section; zeroing"),
-                                NULL, input_bfd, o, rel->r_offset);
-#endif
                              BFD_ASSERT (r_symndx != 0);
                              memset (rel, 0, sizeof (*rel));
                            }
                          else
-#endif
                            {
                              if (! ((*finfo->info->callbacks->undefined_symbol)
                                     (finfo->info, h->root.root.string,
@@ -6841,23 +6833,15 @@ elf_link_input_bfd (finfo, input_bfd)
 
                      if (sec != NULL && elf_discarded_section (sec))
                        {
-#if BFD_VERSION_DATE < 20031005
                          if ((o->flags & SEC_DEBUGGING) != 0
                              || (sec->flags & SEC_LINK_ONCE) != 0)
                            {
-#if BFD_VERSION_DATE > 20021005
-                             (*finfo->info->callbacks->warning)
-                               (finfo->info,
-                                _("warning: relocation against removed section"),
-                                NULL, input_bfd, o, rel->r_offset);
-#endif
                              BFD_ASSERT (r_symndx != 0);
                              rel->r_info
                                = ELF_R_INFO (0, ELF_R_TYPE (rel->r_info));
                              rel->r_addend = 0;
                            }
                          else
-#endif
                            {
                              boolean ok;
                              const char *msg