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: Problem with binutils 2.19.1 with Cortex-a9/Linux-2.6.28


Hi Nitin,

Can you pls provide more information/patch/requirement about handling
of R_ARM_REL32 relocation in Linux kernel?

Get hold of a copy of ARM's "ELF for the ARM® Architecture" document. It is available from ARM, but I also found older versions of it at various places on the web. I recommend going directly to ARM:


http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044c/IHI0044C_aaelf.pdf

Look at table 4-7 in section 4.6.1.1 where it defines R_ARM_REL32 as:

R_ARM_REL32 ((S + A) | T) – P

This section also documents the meanings of S, A, T and P. All you have to do is to implement this in the kernel. It should be pretty straightforward. The relocation is basically the same as the R_ARM_ABS32 relocation, except that it is location-relative.

Cheers
  Nick


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