On Fri, 6 Sep 2024, Evgeny Karpov wrote:

aarch64.cc has been updated to prevent emitting "symbol + offset"
for SYMBOL_SMALL_ABSOLUTE for the PECOFF target. "symbol + offset"
cannot be used in relocations for aarch64-w64-mingw32 due to
relocation requirements.

Instead, it will adjust the address by an offset with the
"add" instruction.

This approach allows addressing 4GB, instead of 1MB as it was before.
This issue has been fixed in the binutils patch series.

https://sourceware.org/pipermail/binutils/2024-August/136481.html

Sorry, but no.

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

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

// Martin

Reply via email to