|
From: | Nick Clifton |
Subject: | Re: How large file can be processed by the linker "ld"? |
Date: | Thu, 06 Nov 2008 12:08:12 +0000 |
User-agent: | Thunderbird 2.0.0.16 (X11/20080723) |
Hi shihhuangti,
Today, I make the whole project at my office, and the obj generated with opition "-g3", and when final linking, I keep the dbg-info within the exe-file, but failed with the message "memory exhausted", and later I find there is a objfile passed to the linker ld and the file is of size 1.9G.I want to know it is a bug or not?
No it is not.
How large file (the upper limit) can be processed by the linker "ld"?
It is limited by the amount of memory/swap space available on your system, (and the amount allowed to be used by a single process).
You might like to try adding the "--reduce-memory-overheads" option to your linker command line (or "-Wl,--reduce-memory-overheads" to your gcc command line if you are using gcc to drive the linker). This may help.
Cheers Nick
[Prev in Thread] | Current Thread | [Next in Thread] |