aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-10-11 09:17:13 +0000
committerAlan Modra <amodra@gmail.com>2004-10-11 09:17:13 +0000
commit029446c42d2ecf7c8f0e209b66bb86e7ba026157 (patch)
tree5b46deb2c7496a5f82ec4b801c45d7b8479991a2 /bfd/elflink.c
parent83ef0798389cae01c8889ee63221f3a34414e0dd (diff)
downloadgdb-029446c42d2ecf7c8f0e209b66bb86e7ba026157.zip
gdb-029446c42d2ecf7c8f0e209b66bb86e7ba026157.tar.gz
gdb-029446c42d2ecf7c8f0e209b66bb86e7ba026157.tar.bz2
* elflink.c (elf_link_input_bfd): Revert PR 354 change.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index f47d464..08c0aee 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);
- }
}
}