2022-05-26 00:17:26

by Segher Boessenkool

[permalink] [raw]
Subject: Re: [RFC PATCH v1 2/4] objtool: Add R_REL32 macro

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