https://sourceware.org/bugzilla/show_bug.cgi?id=30756
--- Comment #5 from Sam James <sam at gentoo dot org> --- (In reply to H.J. Lu from comment #4) > (In reply to Adam Majer from comment #3) > > (In reply to H.J. Lu from comment #2) > > > Please try -Wl,-z,--no-keep-memory > > > > /usr/lib/gcc/i586-suse-linux/13/../../../../i586-suse-linux/bin/ld: warning: > > -z --no-keep-memory ignored > > > > but it worked and didn't blow up memory anymore.... The same result is if I > > don't have this option there at all. > > > > So it seems the combination of --no-keep-memory and -z pack-relative-relocs > > is the problem here? > > -z pack-relative-relocs runs out of memory on 32-bit x86 when linking a large > binary. You can add --no-keep-memory with -z pack-relative-relocs in this > case. The original command (in comment 0) has -Wl,--no-keep-memory -Wl,--reduce-memory-overheads, and it exhausted memory _with_ those. man ld does not mention needing -z for these. comment 3 makes it sound like -Wl,--no-keep-memory actually breaks it. We had some problems in the past with this combination, like PR29939.. -- You are receiving this mail because: You are on the CC list for the bug.