This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS md_apply_fix()(?) problem.
Hi Richard,
> > Then I was going to add a new bitfield to the fixup which would
> > fixup_segment would set if it had added in the symbol's value before
> > calling md_apply_fix3. Backends could then examine this flag and undo
> > the addition if they wanted to. In fact it might be better to have a
> > target specific macro that fixup_segment uses to check to see whether
> > it should add in the symbol's value in the first place.
>
> Would this stuff affect bfd_install_relocation too?
Well now that you mwntion it, yes, I think that that would be a good
idea.
> Would it possible to move all the addend twiddling out of
> bfd_install_relocation and rely only on this new fixup handling
> instead?
As an optional system yes. Teh default system of using
bfd_install_relocation should still be available of course.
Send me a personal email if you want to pursue this before I get
around to mucking about with it myself.
Cheers
Nick