Smuggle N_WARNING symbols into BFD in obj_aout_frob_symbol.
[deliverable/binutils-gdb.git] / gas / config / obj-aout.c
index ea50c9ae9e5c6abc0e7a1d2c439b750504595a69..8baa1b29e4512006d40f6ace83f31df34dbd7020 100644 (file)
@@ -115,6 +115,7 @@ obj_aout_frob_symbol (sym, punt)
        sym->bsym->section = sec = &bfd_und_section;
 
       if ((type & N_TYPE) != N_INDR
+         && type != N_WARNING
          && (sec == &bfd_abs_section
              || sec == &bfd_und_section))
        return;
@@ -136,6 +137,10 @@ obj_aout_frob_symbol (sym, punt)
          sym->bsym->section = &bfd_ind_section;
          sym->bsym->flags |= BSF_INDIRECT;
          break;
+       case N_WARNING:
+         /* Mark warning symbols.  */
+         sym->bsym->flags |= BSF_WARNING;
+         break;
        }
     }
   else
This page took 0.023963 seconds and 4 git commands to generate.