Friday, September 6, 2024
Martin Storsjö <mar...@martin.st> wrote:

> Sorry, but no.
> 
> You can't just redefine how relocations in your object file format works,
> just because you feel like it.

This patch changes how symbol with offset will be emitted.

It will change:
adrp x0, symbol + offset

to:
adrp  x0, symbol
add x0, x0, offset

It is not optimal, however, it is not critical, and both relocation approaches
work with it. The concern regarding changing relocation in binutils is clear
and will be discussed on the binutils mailing list.

> Didn't you see my reply about how MSVC themselves also use this
> relocation?

Yes, the extended answer will be prepared.

Regards,
Evgeny

Reply via email to