mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 08:14:09 -09:00
202c0c4eac16eed7323f85bf698b573dece71610
When a package defines $(PKG)_FLAT_STACKSIZE, ELF2FLT_FLAGS contains -Wl,-elf2flt="-r -s<stack-size>". The embedded quotes are needed to keep both elf2flt options in single linker argument. However, many package Makefiles wrap $(TARGET_CFLAGS) in double quotes, for example: CFLAGS="$(TARGET_CFLAGS)" After expansion, the embedded quote terminates the outer CFLAGS quote. As a result, the shell interprets "-s<stack-size> ..." as a command instead of passing it to the compiler. Pass -r and -s<stack-size> in separate -Wl arguments instead. This avoids embedded quotes; GCC forwards both -elf2flt options to ld-elf2flt, which collects them before invoking elf2flt. This got broken by commit04d7ea4720("package: Makefile.in: fix elf2flt invocation options"), which by adding -r as an elf2flt argument, did not correctly handle -s$($(PKG)_FLAT_STACKSIZE). Signed-off-by: Fengwei Tan <tfx2001@outlook.com> [Thomas: improve commit message] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commite913afbeb1) Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
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 https://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 OFTC IRC. If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches
Description
Languages
Makefile
62.5%
Python
19%
C
8.5%
Shell
6.1%
PHP
1.4%
Other
2.1%