crosstool-ng/packages/gcc/5.5.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-libtool-leave-framework-alone.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0001-uclibc-conf.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0002-msp430-string-literals.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0003-xtensa-implement-trap-pattern.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0004-alpha-bad-eh_frame.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0005-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0006-missing-execinfo_h.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0007-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
0008-gcc-plugin-POSIX-include-sys-select-h.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0009-arm-softfloat-libgcc.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0010-arm_unbreak_armv4t.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0011-microblaze-enable-dwarf-eh-support.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0012-libstdcxx-uclibc-c99.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0013-cilk-wchar.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0014-xtensa-add-mauto-litpools-option.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0015-xtensa-reimplement-register-spilling.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0016-xtensa-add-uclinux-support.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0017-fix-m68k-compile.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0018-fix-m68k-uclinux.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0019-microblaze-uclibc.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0020-libitm-fixes-for-musl-support.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0021-fixincludes-update-for-musl-support.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0022-unwind-fix-for-musl.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0023-libstdc++-libgfortran-gthr-workaround-for-musl.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0024-musl-libc-config.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0025-add-musl-support-to-gcc.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0026-mips-musl-support.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0027-x86-musl-support.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0028-arm-musl-support.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0029-aarch64-musl-support.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0030-nios2-bad-multilib-default.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0031-libgcc-disable-split-stack-nothreads.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0032-uclinux-enable-threads.patch Run all patches through renumbering and update 2017-12-02 12:44:39 -08:00
0033-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 Upgrades: gcc 5.5, gdb 8.0.1, musl 1.1.17, Linux 2017-10-23 13:02:01 -07:00
version.desc Upgrades: gcc 5.5, gdb 8.0.1, musl 1.1.17, Linux 2017-10-23 13:02:01 -07:00