[PATCH v3 0/1] aarch64: mingw: Prevent relocation types from being overwritten

Evgeny Karpov <[email protected]> Wed, 22 Jul 2026 13:03:59 +0200
Newsgroups gmane.comp.gnu.binutils
Message-ID <[email protected]>
Hello,

Thank you for reviewing v2!
v2 has been on hold as a low priority, however v3 is a prerequisite for a patch
with auto import implementation now.

Changes in v3:
- Reduce the patch series to 1 patch, as the other patches are no longer needed
  or have already been upstreamed.
- Exclude aarch64_fix_adjustable, as a similar implementation has already been
  upstreamed.

Changes in v2 2024-11-18:
- Revert relocation processing for IMAGE_REL_ARM64_PAGEBASE_REL21. The required changes
  to extend the limit for the offset in "symbol + offset" from 1MB to 16MB have been made
  on the GCC side.
- Change logic to prevent the reduction of a symbol name to a section name by using
  aarch64_fix_adjustable.
- Correct formatting.
https://sourceware.org/pipermail/binutils/2024-November/137713.html

v1 2024-08-26:
This patch series supports the GCC patch series 3 for the
aarch64-w64-mingw32 target. The patch series focuses on resolving
issues related to relocations, the small code model, LTO, and weak
references.
https://sourceware.org/pipermail/binutils/2024-August/136481.html

Regards,
Evgeny

Evgeny Karpov (1):
  aarch64: mingw: Prevent relocation types from being overwritten

 bfd/coff-aarch64.c | 33 +++++++++++----------------------
 bfd/cofflink.c     |  3 +++
 2 files changed, 14 insertions(+), 22 deletions(-)