summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-10-11 09:17:13 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-10-11 09:17:13 +0000
commitbcf8dd6c825f7e2dc5ead2c24cebddc1004d0c9d (patch)
tree6fb021b11771c92861f8f6dc9174bc330df9c728 /bfd
parent4e0ce6f9b5ea1cde99f568bcc8e9146dad96dbdd (diff)
downloadgdb-bcf8dd6c825f7e2dc5ead2c24cebddc1004d0c9d.tar.gz
* elflink.c (elf_link_input_bfd): Revert PR 354 change.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog2
-rw-r--r--bfd/elflink.c15
2 files changed, 2 insertions, 15 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 206f16be520..09b4e2d9080 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elflink.c b/bfd/elflink.c
index f47d4646f46..08c0aee6f1d 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -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);
- }
}
}