undefined reference to `__stack_chk_guard' when building with sandbox_defconfig
Andrew Goodbody
andrew.goodbody at linaro.org
Thu Mar 27 12:38:34 CET 2025
On 26/03/2025 13:03, McLaughlin Amy wrote:
> At my workplace, I ran:
>
> make distclean
> make sandbox_defconfig
> make all
>
> The result:
>
> LTO u-boot
> /usr/bin/ld: /tmp/ccvKFEMH.ltrans0.ltrans.o: in function `pci_io_read':
> /home/mclauam/gitclone/u-boot/arch/sandbox/lib/pci_io.c:52:(.text+0x3d1): undefined reference to `__stack_chk_guard'
> /usr/bin/ld: /tmp/ccvKFEMH.ltrans0.ltrans.o: in function `get_token':
> /home/mclauam/gitclone/u-boot/boot/pxe_utils.c:943:(.text+0x755): undefined reference to `__stack_chk_guard'
> /usr/bin/ld: /tmp/ccvKFEMH.ltrans0.ltrans.o: in function `parse_sliteral':
> /home/mclauam/gitclone/u-boot/boot/pxe_utils.c:1010:(.text+0x898): undefined reference to `__stack_chk_guard'
> /usr/bin/ld: /tmp/ccvKFEMH.ltrans0.ltrans.o: in function `parse_integer':
> /home/mclauam/gitclone/u-boot/boot/pxe_utils.c:1030:(.text+0x91a): undefined reference to `__stack_chk_guard'
> /usr/bin/ld: /tmp/ccvKFEMH.ltrans0.ltrans.o: in function `os_printf':
> /home/mclauam/gitclone/u-boot/arch/sandbox/cpu/os.c:59:(.text+0xb3c): undefined reference to `__stack_chk_guard'
> /usr/bin/ld: /tmp/ccvKFEMH.ltrans0.ltrans.o:/home/mclauam/gitclone/u-boot/arch/sandbox/cpu/start.c:203: more undefined references to `__stack_chk_guard' follow
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:1766: u-boot] Error 1
See https://source.denx.de/u-boot/u-boot/-/issues/35
Patch was merged to U-Boot on 2nd July 2024 and is included in U-Boot
2024.10
Andrew
More information about the U-Boot
mailing list