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: Handling R_ARM_JUMP24 with inter-working


On 14/10/11 17:40, Ben Gamari wrote:
> According to the ELF for ARM specification, this case requires the
> generation of veneer code to handle the instruction set switch. My
> question is where can one reliably place this veneer such that it is
> within the 2^11 window permitted by the relevant instructions. This is
> made difficult considering the fact that in the general case .text
> itself may be over 2^11 bytes long. It seems that the ELF for ARM
> specification gives a format for veneer symbol naming in appendix B, but
> compilers are not required to support this. How does one generally handle
> placing these relocations?

You might have to put such veneers *between* the components of the .text
section (I really wouldn't expect a single *input* .text to be this
large, and it's reasonable to just say "sorry, I can't do that" if
anybody tries).

R.


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