[PATCH v3 2/8] ARM/ARM64/RISC-V: pbl: add constructor support
Sascha Hauer
sascha at saschahauer.de
Wed Aug 19 02:39:31 PDT 2026
Hi Stefan,
On 2026-08-17 16:01, Stefan Kerkmann wrote:
> This commit allows running functions marked with
> __attribute__((constructor))[1] automatically after the C environment is
> setup in setup_c, which most likely will be early setup code shared
> across SoCs/Arches in the PBL.
This breaks hosttools_defconfig, sandbox_defconfig and targettools_defconfig with:
/usr/bin/ld: pbl/ctors.pbl.o: in function `pbl_do_ctors':
ctors.c:(.text.pbl_do_ctors+0x9): undefined reference to `__ctors_end'
/usr/bin/ld: ctors.c:(.text.pbl_do_ctors+0x11): undefined reference to `__ctors_start'
Could you send a fixup?
More information about the barebox
mailing list