ld.exe: out of memory allocating N bytes for large projects using win32 toolchain
Bug #1722188 reported by
Jacek Ślimok
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
New
|
Undecided
|
Unassigned |
Bug Description
While linking large projects (project I'm working with is just over 1.7k object files), linker reports "ld.exe: out of memory allocating N bytes".
Currently the only available toolchain version for Windows is 32-bit one. This version hasn't been linked with "large address aware" link option and therefore has access to only 2GB RAM. This is a problem for large projects as it's effectively impossible to link such projects under Windows.
It would be best if 64-bit version would be released. Additionally, adding the "--large_
To post a comment you must log in.
Hi Jacek,
We could try enabling --large- address- aware for our binutils builds for Win32. But the real question is can ld.exe handle links that take >2GB RAM - can it do links with I/O reads from disk etc. We will explore this option and let you know.
Thanks,
Tejas.