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 | a181be0adea3693641bae77f10c8f7942b17786e (patch) | |
tree | 3f2f72657647d61002bd7244a7dc5653d798a42f /bfd/coffcode.h | |
parent | a1aefc7694399abec29b3d0865b0e29dce6b2639 (diff) | |
download | gdb-a181be0adea3693641bae77f10c8f7942b17786e.zip gdb-a181be0adea3693641bae77f10c8f7942b17786e.tar.gz gdb-a181be0adea3693641bae77f10c8f7942b17786e.tar.bz2 |
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 f0a2c5e..f87cb9e 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; |