Command line overflow for macOS with ld
Original Reporter info from Mantis: rphoover
-
Reporter name: Rick Hoover
Original Reporter info from Mantis: rphoover
- Reporter name: Rick Hoover
Description:
When including a large number of packages, the link.res file becomes too large for macOS to handle the large command line generated for the linker (ld). macOS limits the command line to 256K and link.res can push near and beyond that limit when linking the IDE with a large number of installed packages.
Steps to reproduce:
Include a large number of packages from the on-line package manager should cause the command link limit to be hit.
Additional information:
A possible fix would be to split the list of object files out of the link.res file into a separate file. The macOS linker allows the use of the -filelist option to provide the list of object files to link. This fix should remove the list of object files from the command line, which is the bulk of what is put on the linker command line.
Mantis conversion info:
- Mantis ID: 36273
- Build: 2019-09-16
- Version: 2.0.4
- Fixed in version: 3.2.0