This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MIPS md_apply_fix()(?) problem.


Hi Richard,

> > I'm afraid the best I can do at the moment is hack around with it even
> > more.  It'd be really nice to do this stuff properly one day...

I was actually thinking of doing that.  (Maybe you would like to have
a go too ?)  My plan was to tidy up write.c:fixup_segment() to remove
all the target specific code, and get rid of the target specific bit
fields in the fixup structure.  (Move them into tc_fix_data).

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.

Cheers
        Nick




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]