diff options
author | Nick Clifton <nickc@redhat.com> | 2001-07-03 15:49:46 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-07-03 15:49:46 +0000 |
commit | 32fddcd14a7a63a94acdd421097b4a6c1147948e (patch) | |
tree | 924e50e0697d04085f1a1612a5c0978c12fe7d1b /bfd/cofflink.c | |
parent | e9da46ec7a8d17a77bc516da70424ede558520c0 (diff) | |
download | binutils-redhat-32fddcd14a7a63a94acdd421097b4a6c1147948e.tar.gz |
Skip section symbols from sections being discarded
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r-- | bfd/cofflink.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 96b005bc89..47716ac2ea 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -1501,6 +1501,21 @@ _bfd_coff_link_input_bfd (finfo, input_bfd) } } +#ifndef COFF_WITH_PE + /* Skip section symbols for sections which are not going to be + emitted, or which belong to linkonce sections that are going + to be discarded. */ + if (!skip + && isym.n_sclass == C_STAT + && isym.n_type == T_NULL + && isym.n_numaux > 0) + { + if ((*secpp)->output_section == bfd_abs_section_ptr + || (*secpp)->kept_section) + skip = true; + } +#endif + /* If we stripping debugging symbols, and this is a debugging symbol, then skip it. FIXME: gas sets the section to N_ABS for some types of debugging symbols; I don't know if this is |