From: Ian Lance Taylor Date: Wed, 19 Jan 1994 05:02:24 +0000 (+0000) Subject: Smuggle N_WARNING symbols into BFD in obj_aout_frob_symbol. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13655af625eafc5397b50a7e108012a8d7898c30;p=binutils-gdb.git Smuggle N_WARNING symbols into BFD in obj_aout_frob_symbol. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 296807c4942..05bc6e0fec4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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 N_UNDF | N_EXT is in the absolute section, move it to the 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) diff --git a/gas/config/obj-aout.c b/gas/config/obj-aout.c index ea50c9ae9e5..8baa1b29e45 100644 --- a/gas/config/obj-aout.c +++ b/gas/config/obj-aout.c @@ -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