[RFC PATCH v1 2/4] objtool: Add R_REL32 macro

Segher Boessenkool segher at kernel.crashing.org
Thu May 26 02:40:54 AEST 2022


Hi!

On Wed, May 25, 2022 at 05:58:15PM +0200, Christophe Leroy wrote:
> In order to allow other architectures than x86 to use 32 bits
> relative relocations, define a R_REL32 macro that each architecture
> will define, in the same way as already done for R_NONE.

What are the expected semantics of this relocation?  It is PC-relative,
sure, but what is the destination?  S+A-P always?  That works for both
x86-64 and for PowerPC, but it should be written doen somewhere :-)


Segher


More information about the Linuxppc-dev mailing list