* elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
[deliverable/binutils-gdb.git] / bfd / merge.c
index d3586feb69dac02ea24667b64172321557dba632..7b06c10debeec6c73bd937703a609530324ce87f 100644 (file)
@@ -771,9 +771,10 @@ alloc_failure:
    with _bfd_merge_section.  */
 
 boolean
-_bfd_merge_sections (abfd, xsinfo)
+_bfd_merge_sections (abfd, xsinfo, remove_hook)
      bfd *abfd ATTRIBUTE_UNUSED;
      PTR xsinfo;
+     void (*remove_hook) PARAMS((bfd *, asection *));
 {
   struct sec_merge_info *sinfo;
 
@@ -792,7 +793,11 @@ _bfd_merge_sections (abfd, xsinfo)
       /* Record the sections into the hash table.  */
       for (secinfo = sinfo->chain; secinfo; secinfo = secinfo->next)
        if (secinfo->sec->flags & SEC_EXCLUDE)
-         *secinfo->psecinfo = NULL;
+         {
+           *secinfo->psecinfo = NULL;
+           if (remove_hook)
+             (*remove_hook) (abfd, secinfo->sec);
+         }
        else if (! record_section (sinfo, secinfo))
          break;
 
This page took 0.022869 seconds and 4 git commands to generate.