Smuggle N_WARNING symbols into BFD in obj_aout_frob_symbol.

This commit is contained in:
Ian Lance Taylor 1994-01-19 05:02:24 +00:00
parent 3a5b50f457
commit 13655af625
2 changed files with 7 additions and 1 deletions

View file

@ -20,7 +20,8 @@ Tue Jan 18 17:23:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
with explicitly marked stabs through BFD: if a symbol marked with explicitly marked stabs through BFD: if a symbol marked
N_UNDF | N_EXT is in the absolute section, move it to the N_UNDF | N_EXT is in the absolute section, move it to the
undefined section; move a symbol marked N_INDR into undefined section; move a symbol marked N_INDR into
bfd_ind_section and set the BSF_INDIRECT flag. bfd_ind_section and set the BSF_INDIRECT flag; set the
BSF_WARNING flag for a symbol makred N_WARNING.
Mon Jan 17 15:40:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) Mon Jan 17 15:40:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)

View file

@ -115,6 +115,7 @@ obj_aout_frob_symbol (sym, punt)
sym->bsym->section = sec = &bfd_und_section; sym->bsym->section = sec = &bfd_und_section;
if ((type & N_TYPE) != N_INDR if ((type & N_TYPE) != N_INDR
&& type != N_WARNING
&& (sec == &bfd_abs_section && (sec == &bfd_abs_section
|| sec == &bfd_und_section)) || sec == &bfd_und_section))
return; return;
@ -136,6 +137,10 @@ obj_aout_frob_symbol (sym, punt)
sym->bsym->section = &bfd_ind_section; sym->bsym->section = &bfd_ind_section;
sym->bsym->flags |= BSF_INDIRECT; sym->bsym->flags |= BSF_INDIRECT;
break; break;
case N_WARNING:
/* Mark warning symbols. */
sym->bsym->flags |= BSF_WARNING;
break;
} }
} }
else else