From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Ian Lance Taylor Cc: mklein@dis.com, binutils@sourceware.cygnus.com Subject: Re: HPPA/SOM Patch Date: Thu, 01 Jul 1999 00:00:00 -0000 Message-id: <26537.929345197@upchuck.cygnus.com> References: <19990605035401.13429.qmail@daffy.airs.com> X-SW-Source: 1999-q2/msg00239.html In message < 19990605035401.13429.qmail@daffy.airs.com >you write: > No, I believe set_symtab must be called before the relocations are > written out. > > One way to avoid it would be to call symbol_get_bfdsym immediately > after creating dummy_symbol, to force it to be converted to a real > symbol before set_symtab is called. > > Another way would be not use dummy_symbol for this at all, and instead > call bfd_create_empty_symbol directly to get something you can set the > reloc sym_ptr_ptr field to point to. What I do not understand (possibly because I haven't read Ian's revamped code yet) is what we gain by not using bfd_abs_symbol anymore. ie, what is the point behind generating some new dummy symbol when we have a suitable symbol handy? Or is it the case that bfd_abs_symbol is no longer useable in this manner? jeff