summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-07-06 08:05:27 +0000
committerNick Clifton <nickc@redhat.com>2001-07-06 08:05:27 +0000
commite9caa9c4a286f76129132ac23953e99fc7eca9f2 (patch)
tree4e6fa79ffc697800c15ecab70e0ad38276398b4c
parent2ad4e6bf19813c08287bc1b5aaa4ccf2ed6c3db8 (diff)
downloadbinutils-redhat-e9caa9c4a286f76129132ac23953e99fc7eca9f2.tar.gz
And remove the seconf accidental patch commission.
-rw-r--r--binutils/objcopy.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index b38d1e589d..587d57f83d 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -1616,32 +1616,6 @@ copy_section (ibfd, isection, obfdarg)
free (relpp);
relpp = temp_relpp;
}
- else if (sections_removed)
- {
- /* Remove relocations which are against symbols
- in sections that have been removed, unless
- the symbols are going to be preserved. */
- arelent ** temp_relpp;
- asymbol * sym;
- long temp_relcount = 0;
- long i;
-
- temp_relpp = (arelent **) xmalloc (relsize);
- for (i = 0; i < relcount; i++)
- {
- sym = *relpp [i]->sym_ptr_ptr;
-
- /* FIXME: Should we warn about deleted relocs ? */
- if (is_specified_symbol (bfd_asymbol_name (sym),
- keep_specific_list)
- || bfd_get_output_section (sym) != NULL)
- temp_relpp [temp_relcount++] = relpp [i];
- }
-
- relcount = temp_relcount;
- free (relpp);
- relpp = temp_relpp;
- }
bfd_set_reloc (obfd, osection,
(relcount == 0 ? (arelent **) NULL : relpp), relcount);