diff options
author | Nick Clifton <nickc@redhat.com> | 2001-07-06 08:05:27 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-07-06 08:05:27 +0000 |
commit | eed1d0acc7812d5d6f8427871c7e38fff6b674f1 (patch) | |
tree | d432150e1da9af611a89d005ce2c1db084cd9905 /binutils/objcopy.c | |
parent | ec5d57d5e84e23cd738bd45f393b66d61a46f6ae (diff) | |
download | gdb-eed1d0acc7812d5d6f8427871c7e38fff6b674f1.zip gdb-eed1d0acc7812d5d6f8427871c7e38fff6b674f1.tar.gz gdb-eed1d0acc7812d5d6f8427871c7e38fff6b674f1.tar.bz2 |
And remove the seconf accidental patch commission.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index b38d1e5..587d57f 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); |