From: nickc Date: Wed, 3 Sep 2003 16:06:11 +0000 (+0000) Subject: Do not skip section symbols that are used in relocs. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=38d3dfde1fe84c5a80201cd3e2415cd439e03d18;p=pf3gnuchains%2Fpf3gnuchains3x.git Do not skip section symbols that are used in relocs. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1c7b87bb18..003e7ac1c7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-09-03 Nick Clifton + + * cofflink.c (_bfd_coff_link_input_bfd): Do not skip section + symbols that are used in relocs. + 2003-08-30 Robert Millan * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu triplet. diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 09f03f03ef..c1eee1b232 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -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