OSDN Git Service

* elflink.c (elf_link_input_bfd): Revert PR 354 change.
authoramodra <amodra>
Mon, 11 Oct 2004 09:17:12 +0000 (09:17 +0000)
committeramodra <amodra>
Mon, 11 Oct 2004 09:17:12 +0000 (09:17 +0000)
bfd/ChangeLog
bfd/elflink.c

index 206f16b..09b4e2d 100644 (file)
@@ -1,5 +1,7 @@
 2004-10-11  Alan Modra  <amodra@bigpond.net.au>
 
+       * elflink.c (elf_link_input_bfd): Revert PR 354 change.
+
        PR 354
        * elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC
        sections do not reference symbols in non-SEC_ALLOC sections.
index f47d464..08c0aee 100644 (file)
@@ -6788,21 +6788,6 @@ elf_link_input_bfd (struct elf_final_link_info *finfo, bfd *input_bfd)
                      rel->r_info &= r_type_mask;
                      rel->r_addend = 0;
                    }
-
-                 /* Check that loaded segments don't reference symbols
-                    in non-loaded segments.  */
-                 if ((o->flags & SEC_ALLOC) != 0
-                     && sec != NULL
-                     && !bfd_is_abs_section (sec)
-                     && !elf_discarded_section (sec)
-                     && sec->output_section != NULL
-                     && (sec->output_section->flags & SEC_ALLOC) == 0)
-                   {
-                     (*_bfd_error_handler)
-                       (_("`%s' referenced in section `%A' of %B: "
-                          "defined in non-loaded section `%A' of %B\n"),
-                        o, input_bfd, sec, sec->owner, sym_name);
-                   }
                }
            }