[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: |
sam at gentoo dot org |
Subject: |
[Bug ld/30756] ld: -Wl,-z,pack-relative-relocs goes OOM on i586 link |
Date: |
Wed, 16 Aug 2023 06:36:57 +0000 |
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.
- [Bug ld/30756] New: ld: -Wl, -z, pack-relative-relocs goes OOM on i586 link, amajer at suse dot de, 2023/08/14
- [Bug ld/30756] ld: -Wl,-z,pack-relative-relocs goes OOM on i586 link, amajer at suse dot de, 2023/08/14
- [Bug ld/30756] ld: -Wl,-z,pack-relative-relocs goes OOM on i586 link, hjl.tools at gmail dot com, 2023/08/14
- [Bug ld/30756] ld: -Wl,-z,pack-relative-relocs goes OOM on i586 link, amajer at suse dot de, 2023/08/15
- [Bug ld/30756] ld: -Wl,-z,pack-relative-relocs goes OOM on i586 link, hjl.tools at gmail dot com, 2023/08/15
- [Bug ld/30756] ld: -Wl,-z,pack-relative-relocs goes OOM on i586 link, sam at gentoo dot org, 2023/08/15
- [Bug ld/30756] ld: -Wl,-z,pack-relative-relocs goes OOM on i586 link,
sam at gentoo dot org <=
- [Bug ld/30756] ld: -Wl,-z,pack-relative-relocs goes OOM on i586 link, amajer at suse dot de, 2023/08/16
- [Bug ld/30756] ld: -Wl, -z, pack-relative-relocs -Wl, --no-keep-memory goes OOM on i586 link, amajer at suse dot de, 2023/08/16
- [Bug ld/30756] ld: -Wl, -z, pack-relative-relocs -Wl, --no-keep-memory goes OOM on i586 link, sam at gentoo dot org, 2023/08/30
- [Bug ld/30756] ld: -Wl, -z, pack-relative-relocs -Wl, --no-keep-memory goes OOM on i586 link, sam at gentoo dot org, 2023/08/30