[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How large file can be processed by the linker "ld"?

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 (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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]