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
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils