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: strange relocation enties (scattered data)


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


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