Do not skip section symbols that are used in relocs.
authorNick Clifton <nickc@redhat.com>
Wed, 3 Sep 2003 16:06:12 +0000 (16:06 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 3 Sep 2003 16:06:12 +0000 (16:06 +0000)
bfd/ChangeLog
bfd/cofflink.c

index 1c7b87bb18e37bd7c8e354843c9fd05b338d52ae..003e7ac1c794b19d289e00087df2d291f43e69bf 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-03  Nick Clifton  <nickc@redhat.com>
+
+       * cofflink.c (_bfd_coff_link_input_bfd): Do not skip section 
+       symbols that are used in relocs.
+
 2003-08-30  Robert Millan  <robertmh@gnu.org>
 
        * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu triplet.
index 09f03f03ef0ec567f7790f53cb1f2644d57f529c..c1eee1b2325a3c736b60e6cf7aef4db50ecc80d2 100644 (file)
@@ -1481,13 +1481,12 @@ _bfd_coff_link_input_bfd (struct coff_final_link_info *finfo, bfd *input_bfd)
       /* Skip section symbols for sections which are not going to be
         emitted.  */
       if (!skip
+         && dont_skip_symbol == 0
          && isym.n_sclass == C_STAT
          && isym.n_type == T_NULL
-          && isym.n_numaux > 0)
-        {
-          if ((*secpp)->output_section == bfd_abs_section_ptr)
-           skip = TRUE;
-        }
+          && isym.n_numaux > 0
+         && (*secpp)->output_section == bfd_abs_section_ptr)
+       skip = TRUE;
 #endif
 
       /* If we stripping debugging symbols, and this is a debugging