[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25585] [2.34 Regression] error: PHDR segment not covered by LOAD
From: |
amodra at gmail dot com |
Subject: |
[Bug ld/25585] [2.34 Regression] error: PHDR segment not covered by LOAD segment |
Date: |
Sat, 22 Feb 2020 00:27:40 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25585
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
This isn't a binutils bug, unless you believe that "PHDR segment not covered by
LOAD segment" should not cause a link error. I think the ELF standard is quite
clear: "PT_PHDR ... may occur only if the program header table is part of the
memory image of the program"
binutils-2.30, 2.31, 2.32 and 2.33 all generate a PHDR that isn't loaded by any
LOAD segment, but the code checking for that problem was ineffective. This
needs fixing in the linker script used by the project, or since it seems like
the binary being generated is never meant to run directly on a glibc system, by
linking with --no-dynamic-linker.
--
You are receiving this mail because:
You are on the CC list for the bug.