diff options
author | Alan Modra <amodra@gmail.com> | 2020-02-22 12:46:33 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-02-22 13:10:31 +1030 |
commit | acc4a8b8ac83077819948126bc7501d35eb1ea74 (patch) | |
tree | c527412a15dab502ba9b4e3e4c69b818ca6759b3 /ld | |
parent | e4c9402701ee1b8007b5f9fa22e3ad3620e2ca54 (diff) | |
download | binutils-gdb-acc4a8b8ac83077819948126bc7501d35eb1ea74.tar.gz |
PR25585, PHDR segment not covered by LOAD segment
I closed this bug as invalid, but I think it is worth mentioning in NEWS
that older linkers didn't check PT_PHDR very well. The patch also allows
people to force an output file with --noinhibit-exec after the error.
bfd/
PR 25585
* elf.c (assign_file_positions_for_load_sections): Continue linking
on "PHDR segment not covered by LOAD segment" errors.
ld/
PR 25585
* NEWS: Mention better "PHDR segment not covered by LOAD segment"
checking.
(cherry picked from commit 7b3c27152b5695177a2cd5adc0d7b0255f99aca0)
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/NEWS | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 999e0f4e335..ebbf64e8939 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2020-02-22 Alan Modra <amodra@gmail.com> + + PR 25585 + * NEWS: Mention better "PHDR segment not covered by LOAD segment" + checking. + 2020-02-14 Nick Clifton <nickc@redhat.com> Import from the mainline: @@ -2,6 +2,12 @@ Changes in 2.34: +* The ld check for "PHDR segment not covered by LOAD segment" is more + effective, catching cases that were wrongly allowed by previous versions of + ld. If you see this error it is likely you are linking with a bad linker + script or the binary you are building is not intended to be loaded by a + dynamic loader. In the latter case --no-dynamic-linker is appropriate. + * cr16c support removed. * Add support for z80-elf. |