When adding BSF_WEAK flag, OR it in rather than replacing previously selected
[deliverable/binutils-gdb.git] / bfd / coffcode.h
index f0a2c5e3a6195876fecfb13cb222498ec5e3a78e..f87cb9e98ce00feba93e286443e308699e4b6ad9 100644 (file)
@@ -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;
 
This page took 0.023178 seconds and 4 git commands to generate.