[PATCH v3 0/1] Add bigobj support to AArch64 COFF

Evgeny Karpov evgeny@kmaps.co
Mon Oct 27 20:10:38 GMT 2025


Hello,

Thank you for reviewing v2.
v3 contains the minimal changes required after rebasing.

Changes in v3 2025-10-27:
- Fix rebase ussue after adding merge_sections

Changes in v2 2025-10-02:
- Replace aarch64_pe_big_vec with aarch64_pe_big_le_vec.
- Replace pe-aarch64-bigobj with pe-bigobj-aarch64-little.
- Change use_big_obj to a bool.
- Add -mbig-obj to the documentation.
- Revert change in big-obj.d. The file format change is no longer needed.

v1 2025-09-24:
https://sourceware.org/pipermail/binutils/2025-September/144459.html
During Boost library testing on aarch64-w64-mingw32, it appeared that 2^16
sections are not enough. It can be handled by using the bigobj format to extend
the total amount of sections to 2^32. This patch adds bigobj support to
AArch64 COFF in a similar way to how it is done for x86_64.

Regards,
Evgeny

Evgeny Karpov (1):
  Add bigobj support to AArch64 COFF

 bfd/coff-aarch64.c      | 76 +++++++++++++++++++++++++++++++++++++++++
 bfd/config.bfd          |  2 +-
 bfd/configure           |  1 +
 bfd/configure.ac        |  1 +
 bfd/cpu-aarch64.c       |  2 +-
 bfd/pe-aarch64.c        |  3 ++
 bfd/targets.c           |  2 ++
 gas/config/tc-aarch64.c | 22 +++++++++++-
 gas/doc/c-aarch64.texi  |  5 +++
 ld/pe-dll.c             | 12 +++++++
 10 files changed, 123 insertions(+), 3 deletions(-)

-- 
2.39.5


More information about the Binutils mailing list