Summary: | ld powerpc64le NULL deref in ppc_get_stub_entry when linking code in not-executable sections | ||
---|---|---|---|
Product: | binutils | Reporter: | npiggin |
Component: | ld | Assignee: | Alan Modra <amodra> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.28 | ||
Target Milestone: | --- | ||
Host: | powerpc64le-unknown-linux-gnu | Target: | powerpc64le-unknown-linux-gnu |
Build: | Last reconfirmed: | 2016-08-02 00:00:00 |
Description
npiggin
2016-08-02 05:45:29 UTC
For better or worse, Linux kernel wants to do this in order to run a test case for non-executable mapping of data. Other architectures seem to work, and gold with powerpc64le works with my simple test case. Gah, code in non-exec sections? The master branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=89d77b8a520602832516ce6628ea930b4f0ccff4 commit 89d77b8a520602832516ce6628ea930b4f0ccff4 Author: Alan Modra <amodra@gmail.com> Date: Tue Aug 2 23:28:47 2016 +0930 PowerPC64 ld segfault with code in non-executable sections PR ld/20428 * elf64-ppc.c (ppc_get_stub_entry): Don't segfault on NULL group. The binutils-2_27-branch branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=24ef2be9b6ca8276a62b3f60f845f4c8bb6194dd commit 24ef2be9b6ca8276a62b3f60f845f4c8bb6194dd Author: Alan Modra <amodra@gmail.com> Date: Tue Aug 2 23:28:47 2016 +0930 PowerPC64 ld segfault with code in non-executable sections PR ld/20428 * elf64-ppc.c (ppc_get_stub_entry): Don't segfault on NULL group. The binutils-2_26-branch branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d45d94d9484e5f22e1e414a17f8d4317f4f1ee37 commit d45d94d9484e5f22e1e414a17f8d4317f4f1ee37 Author: Alan Modra <amodra@gmail.com> Date: Tue Aug 2 23:28:47 2016 +0930 PowerPC64 ld segfault with code in non-executable sections PR ld/20428 * elf64-ppc.c (ppc_get_stub_entry): Don't segfault on NULL group. Fixed |