This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: HPPA/SOM Patch
- To: Ian Lance Taylor <ian@airs.com>
- Subject: Re: HPPA/SOM Patch
- From: Jeffrey A Law <law@cygnus.com>
- Date: Mon, 14 Jun 1999 01:26:37 -0600
- cc: mklein@dis.com, binutils@sourceware.cygnus.com
- Reply-To: law@cygnus.com
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