diff options
author | Nick Clifton <nickc@redhat.com> | 2002-03-14 18:30:40 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-03-14 18:30:40 +0000 |
commit | 9856eab79261bdc064bd26f21dcca9487b30ac21 (patch) | |
tree | 1c1515f878c0cc4caaf759ebe0d436230b931ec1 /bfd/coffcode.h | |
parent | 0a46d5b84408cd23b315a0a9a25d031809001352 (diff) | |
download | gdb-9856eab79261bdc064bd26f21dcca9487b30ac21.tar.gz |
When adding BSF_WEAK flag, OR it in rather than replacing previously selected
flags.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index f0a2c5e3a61..f87cb9e98ce 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -4443,16 +4443,14 @@ coff_slurp_symbol_table (abfd) #ifdef COFF_WITH_PE if (src->u.syment.n_sclass == C_NT_WEAK) - dst->symbol.flags = BSF_WEAK; + dst->symbol.flags |= BSF_WEAK; + if (src->u.syment.n_sclass == C_SECTION && src->u.syment.n_scnum > 0) - { dst->symbol.flags = BSF_LOCAL; - } #endif - if (src->u.syment.n_sclass == C_WEAKEXT) - dst->symbol.flags = BSF_WEAK; + dst->symbol.flags |= BSF_WEAK; break; |