Go to file
Max Filippov 742175776c gcc: fix uclibc runtime issue with gcc-8 for xtensa
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.

[Peter: drop gcc-8.x patch]
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 91e0fc0bf4)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-07-18 23:20:31 +02:00
arch
board board/synopsys: synchronize custom inittab with BusyBox' one 2018-06-17 17:35:28 +02:00
boot grub2: force -fno-stack-protector in CPPFLAGS 2018-04-30 23:00:58 +02:00
configs configs/freescale_imx6ulevk: Remove target 2018-05-24 22:42:29 +02:00
docs docs/manual: fix scancpan path 2018-06-17 17:40:12 +02:00
fs fs/cpio/init: preserve arguments 2018-02-26 20:49:40 +01:00
linux linux: reword binutils 2.29+ comment 2018-06-17 16:53:26 +02:00
package gcc: fix uclibc runtime issue with gcc-8 for xtensa 2018-07-18 23:20:31 +02:00
support support/dependencies: check that PATH does not contain CWD 2018-05-28 15:48:08 +02:00
system skeleton: PAGER without blank and unset at end of for loop 2018-06-17 17:19:52 +02:00
toolchain toolchain/buildroot: fix default of C library choice 2018-05-28 16:12:14 +02:00
utils scanpypi: add support for the new PyPI infrastructure 2018-04-30 22:54:00 +02:00
.defconfig
.flake8
.gitignore
.gitlab-ci.yml .gitlab-ci.yml: update after removal of freescale defconfigs 2018-05-24 22:53:20 +02:00
.gitlab-ci.yml.in .gitlab-ci.yml: use image with flake8 2018-05-06 21:21:23 +02:00
CHANGES Update for 2018.02.3 2018-06-18 19:43:04 +02:00
Config.in Config.in: add BR2_HOST_GCC_AT_LEAST_8 2018-05-02 21:27:57 +02:00
Config.in.legacy package/transmission: remove BR2_PACKAGE_TRANSMISSION_REMOTE 2018-06-11 22:57:19 +02:00
COPYING
DEVELOPERS DEVELOPERS: update my e-mail address 2018-06-17 17:13:08 +02:00
Makefile Update for 2018.02.3 2018-06-18 19:43:04 +02:00
Makefile.legacy
README

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on Freenode IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches