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: SH: forced local symbols


On Thu, Aug 22, 2002 at 06:39:55PM +0100, Nick Clifton wrote:
> Hi Daniel,
> 
> > Sigh... <insert long rant about the amount of pointless code
> > duplication between ELF targets, for things that are
> > target-independent>.
> 
> Why not bite the bullet and make some ELF-generic functions for this
> and then just fix up the backends to use them ?

I could make little helper functions for the tests, but beyond that -
because the backends are too different, and I'm not familiar enough
with them to separate implementation details from desired behavior.
It's not even clear where the various consistent tests would go in
different backends.  The general structure of an elf relocate_section
or check_relocs routine is always the same, but the devil is in the
details.

My eventual hope is to get two different targets to look almost the
same, move the bulk of their code into common code, use hooks to
represent the differences, and try to slowly expand from there.  But SH
is definitely not a target I'm familiar enough with to do this on; I
only started working with it this week.

In the meantime, unfortunately, I need it to work; so I'm submitting
per-target fixes in the traditional fashion.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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