This is the mail archive of the binutils@sourceware.org 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: [PATCH] Fix objdump output of R_SPARC_OLO10


From: Hans-Peter Nilsson <hp@bitrange.com>
Date: Wed, 19 Jan 2011 06:46:04 -0500 (EST)

> On Tue, 18 Jan 2011, David Miller wrote:
>> On the one hand the fix I'm proposing here is a bit of a hack, but on
>> the other hand it's the best thing I've been able to come up with and
>> this bug has wasted developer time unnecessarily.
>>
>> Any better ideas?
> 
> Overloading the "usual" BFD way?  I.e. an indirection through
> target-specific machinery; a new field in bfd_target, handling
> suggested through BFD_JUMP_TABLE_RELOCS, defaulting to a
> function with the old behavior for all other formats and ELFs
> but overridden for SPARC ones; defaulted but overridable in
> elfxx-target.h?  I think that's what usually happens, I might
> miss some detail.

The BFD backend really does need to provide the relocations in this
special internal format for the linker.

Objdump and the linker use the same interfaces to slurp the
relocations in from the file.


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