[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22431] powerpc64 ld segfault when .plt discarded
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/22431] powerpc64 ld segfault when .plt discarded |
Date: |
Thu, 23 Nov 2017 22:25:07 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22431
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The binutils-2_29-branch branch has been updated by Alan Modra
<address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e4495167d97f38d4e1f78b518e59e00a5533d768
commit e4495167d97f38d4e1f78b518e59e00a5533d768
Author: Alan Modra <address@hidden>
Date: Tue Nov 14 18:47:34 2017 +1030
PR22431, powerpc64 ld segfault when .plt discarded
The fix for the PR is to not use input_section->output_section->owner
to get to the output bfd, but use the output bfd directly since it is
available nowadays in struct bfd_link_info.
I thought it worth warning when non-empty dynamic sections are
discarded too, which meant a tweak to one of the ld tests to avoid the
warning.
bfd/
PR 22431
* elf64-ppc.c (ppc64_elf_size_dynamic_sections): Warn on discarding
non-empty dynamic section.
(ppc_build_one_stub): Take elf_gp from output bfd, not output
section owner.
(ppc_size_one_stub, ppc64_elf_next_toc_section): Likewise.
ld/
* testsuite/ld-elf/note-3.t: Don't discard .got.
(cherry picked from commit 06bcf5416feae129e239476ab1408e038bba171d)
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/22431] New: ld (binutils-2.29) segfaults when building Linux kernel (v4.14) on Fedora 26 ppc64le, mopsfelder at gmail dot com, 2017/11/13
- [Bug binutils/22431] ld (binutils-2.29) segfaults when building Linux kernel (v4.14) on Fedora 26 ppc64le, mopsfelder at gmail dot com, 2017/11/13
- [Bug binutils/22431] ld (binutils-2.29) segfaults when building Linux kernel (v4.14) on Fedora 26 ppc64le, mopsfelder at gmail dot com, 2017/11/13
- [Bug binutils/22431] ld (binutils-2.29) segfaults when building Linux kernel (v4.14) on Fedora 26 ppc64le, mopsfelder at gmail dot com, 2017/11/13
- [Bug binutils/22431] ld (binutils-2.29) segfaults when building Linux kernel (v4.14) on Fedora 26 ppc64le, mopsfelder at gmail dot com, 2017/11/13
- [Bug ld/22431] ld (binutils-2.29) segfaults when building Linux kernel (v4.14) on Fedora 26 ppc64le, mopsfelder at gmail dot com, 2017/11/13
- [Bug ld/22431] ld (binutils-2.29) segfaults when building Linux kernel (v4.14) on Fedora 26 ppc64le, mopsfelder at gmail dot com, 2017/11/13
- [Bug ld/22431] ld (binutils-2.29) segfaults when building Linux kernel (v4.14) on Fedora 26 ppc64le, amodra at gmail dot com, 2017/11/13
- [Bug ld/22431] ld (binutils-2.29) segfaults when building Linux kernel (v4.14) on Fedora 26 ppc64le, cvs-commit at gcc dot gnu.org, 2017/11/14
- [Bug ld/22431] powerpc64 ld segfault when .plt discarded, amodra at gmail dot com, 2017/11/14
- [Bug ld/22431] powerpc64 ld segfault when .plt discarded,
cvs-commit at gcc dot gnu.org <=
- [Bug ld/22431] powerpc64 ld segfault when .plt discarded, amodra at gmail dot com, 2017/11/23