diff options
author | Alan Modra <amodra@bigpond.net.au> | 2009-10-10 04:58:44 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2009-10-10 04:58:44 +0000 |
commit | 867783f0c2d82d1897f5dba81e16b90a45f0c5bd (patch) | |
tree | f61ca7d765d9391c6fb7a7094847986854b7799f /bfd | |
parent | 93f132413b8bc293f08f04d5e31ef23991b46355 (diff) | |
download | binutils-redhat-867783f0c2d82d1897f5dba81e16b90a45f0c5bd.tar.gz |
* cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols for
excluded output sections.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/cofflink.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6237081ee1..d97d5546ed 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-10-10 Alan Modra <amodra@bigpond.net.au> + + * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols for + excluded output sections. + 2009-10-09 Tristan Gingold <gingold@adacore.com> * mach-o.c (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_RPATH. diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 3253e5eecd..a29b687950 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -1514,11 +1514,13 @@ _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 + && !dont_skip_symbol && isym.n_sclass == C_STAT && isym.n_type == T_NULL - && isym.n_numaux > 0 - && (*secpp)->output_section == bfd_abs_section_ptr) + && isym.n_numaux > 0 + && ((*secpp)->output_section == bfd_abs_section_ptr + || bfd_section_removed_from_list (output_bfd, + (*secpp)->output_section))) skip = TRUE; #endif |