crosstool-ng/packages/gcc/6.4.0
Max Filippov c41b9641b1 package/gcc: fix xtensa PR target/65416
gcc-8.1 for xtensa miscompiles uClibc dynamic linker due to gcc PR
target/65416. The build completes successfully, but the binary is
non-functional because the following fragment in the _dl_get_ready_to_run
in ld-uClibc.so overwrites register spill area on stack causing register
corruption in the previous call frame and a subsequent crash:

    419f:       f0c1b2          addi    a11, a1, -16
    41a2:       1ba9            s32i.n  a10, a11, 4
    41a4:       0bc9            s32i.n  a12, a11, 0
    41a6:       5127f2          l32i    a15, a7, 0x144
    41a9:       1765b2          s32i    a11, a5, 92
    41ac:       4e2782          l32i    a8, a7, 0x138
    41af:       146af2          s32i    a15, a10, 80
    41b2:       001b10          movsp   a1, a11

The crash terminates the init process and causes kernel panic.
The fix prevents reordering of movsp opcode and any access to the stack
frame memory and is applicable to all existing gcc versions.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2018-06-24 14:40:26 -07:00
..
0000-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0001-libtool-leave-framework-alone.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0002-uclibc-conf.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0003-missing-execinfo_h.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0004-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0005-gcc-plugin-POSIX-include-sys-select-h.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0006-arm-softfloat-libgcc.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0007-arm_unbreak_armv4t.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0008-ARM-PR-target-70473-Reduce-size-of-Cortex-A8-automat.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0009-cilk-wchar.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0010-xtensa-fix-PR-target-82181.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0011-fix-m68k-compile.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0012-fix-m68k-uclinux.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0013-libgcc-mkmap-symver-support-skip_underscore.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0014-libgcc-config-bfin-use-the-generic-linker-version-in.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0015-libgcc-fix-DWARF-compilation-with-FDPIC-targets.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0016-bfin-define-REENTRANT.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0017-libgfortran-missing-include.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0018-nios2-bad-multilib-default.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0019-libgcc-disable-split-stack-nothreads.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0020-uclinux-enable-threads.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0021-bionic-ndk.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0022-bionic-errno.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0023-crystax.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0024-crystax.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0025-crystax.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0026-crystax.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0027-crystax.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0028-crystax.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0029-crystax.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0030-crystax.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0031-msp430-fix.patch Backport GCC fix for partial int modes 2018-02-15 09:15:00 -08:00
0034-xtensa-fix-PR-target-65416.patch package/gcc: fix xtensa PR target/65416 2018-06-24 14:40:26 -07:00
chksum Add digests for all packages 2017-09-29 17:05:22 -07:00
version.desc Update to GCC 6.4 2017-07-13 10:38:44 -07:00