Summary: | [PATCH] high memory usage when linking many small object files. | ||
---|---|---|---|
Product: | binutils | Reporter: | Bertram Felgenhauer <bertram.felgenhauer> |
Component: | ld | Assignee: | unassigned |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nickc |
Priority: | P2 | ||
Version: | 2.21 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | patch against Debian's binutils-2.21.0.20110327 |
Description
Bertram Felgenhauer
2011-04-18 17:36:20 UTC
CVSROOT: /cvs/src Module name: src Changes by: nickc@sourceware.org 2011-06-03 16:16:32 Modified files: bfd : ChangeLog hash.c Log message: PR ld/12682 * hash.c (higher_primer_number): Add more, small, prime numbers. (bfd_hash_set_default_size): Likewise. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5367&r2=1.5368 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/hash.c.diff?cvsroot=src&r1=1.33&r2=1.34 Hi Bertram, Thanks for reporting this problem. I have applied the second half of your patch - adding more small prime values to the arrays in hash.c. But there is no need for the first part of the patch (changing the value of DEFAULT_SIZE). You can do this from the linker command line. vis: --hash-size=31 You might also wish to consider adding the --reduce-memory-overheads option to the linker command line as well. Cheers Nick |