strange relocation enties (scattered data)

Nick Clifton nickc@cambridge.redhat.com
Fri Dec 21 08:52:00 GMT 2001


Hi Jan,

> I am porting binutils to an architecture where 32-bit absolute
> addresses are not stored in 32 consecutive bits in instruction
> memory but in 6 groups of a few bits.

Now that is a strange architecture.

> The distance between the bit groups varies per instruction. My
> question is how to relocate these addresses. I think that I need to
> add parameters to the relocation entries that describe how the 32
> bits are scattered in memory.

Or better yet make use of the 'special_function' field to provide your
own routines to handle the relocs for these instructions,

> Is this possible with BFD_ASSEMBLER?

Yes.

Cheers
        Nick



More information about the Binutils mailing list