bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/30756] ld: -Wl,-z,pack-relative-relocs goes OOM on i586 link


From: hjl.tools at gmail dot com
Subject: [Bug ld/30756] ld: -Wl,-z,pack-relative-relocs goes OOM on i586 link
Date: Tue, 15 Aug 2023 15:44:41 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30756

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
(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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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