diff options
author | Nick Clifton <nickc@redhat.com> | 2013-04-24 13:24:30 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-04-24 13:24:30 +0000 |
commit | ad83dabf1c9d2fa1f8e228ffb7db60ff25d63937 (patch) | |
tree | 94f58b9b20a02095c0411a4c98fe07154a11864a /bfd | |
parent | 7b5d8d9642fac02ffa550846406922601b204205 (diff) | |
download | gdb-ad83dabf1c9d2fa1f8e228ffb7db60ff25d63937.zip gdb-ad83dabf1c9d2fa1f8e228ffb7db60ff25d63937.tar.gz gdb-ad83dabf1c9d2fa1f8e228ffb7db60ff25d63937.tar.bz2 |
oops - revert accidental commit
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/elflink.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 138c18e..313d89e 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -11842,44 +11842,6 @@ _bfd_elf_gc_mark_extra_sections (struct bfd_link_info *info, && ((isec->flags & SEC_DEBUGGING) != 0 || (isec->flags & (SEC_ALLOC | SEC_LOAD | SEC_RELOC)) == 0)) isec->gc_mark = 1; - /* Look for CODE sections which are going to be discarded. */ - for (isec = ibfd->sections; isec != NULL; isec = isec->next) - if ((isec->flags & SEC_CODE) != 0 - && isec->gc_mark == 0) - { - unsigned int ilen; - asection *dsec; - - ilen = strlen (isec->name); - - /* Determine if there are any debug sections associated - with this code section. If so, remove their mark - (which may have been set above) so that they can be - garbage collected as well. - - Association is determined by the name of the debug section - containing the name of the code section as a suffix. For - example .debug_line.text.foo is a debug section associated - with .text.foo. */ - for (dsec = ibfd->sections; dsec != NULL; dsec = dsec->next) - { - unsigned int dlen; - - if (dsec->gc_mark == 0 - || (dsec->flags & SEC_DEBUGGING) == 0) - continue; - - dlen = strlen (dsec->name); - - if (dlen > ilen - && strncmp (dsec->name + (dlen - ilen), - isec->name, ilen) == 0) - { - dsec->gc_mark = 0; - break; - } - } - } } return TRUE; } |