On Mon, Jun 05, 2023 at 08:28:03AM +0200, Ahmad Fatoum wrote: > The linker scripts fail in an odd way if CONFIG_TEXT_BASE doesn't > fit in 32-bit, e.g. reporting that the PBL is greater than > 0xffffffff, because CONFIG_TEXT_BASE is bigger than that. > > As new platform should just select CONFIG_PBL_RELOCATABLE and > CONFIG_RELOCATABLE anyway, let's enforce the 32-bit maximum in > Kconfig to make errors easier to grok. > > Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> > --- > common/Kconfig | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Applied, thanks Sascha > > diff --git a/common/Kconfig b/common/Kconfig > index 5346ba5a623c..11aabbb509df 100644 > --- a/common/Kconfig > +++ b/common/Kconfig > @@ -198,9 +198,13 @@ config TEXT_BASE > depends on HAVE_CONFIGURABLE_TEXT_BASE > prompt "TEXT_BASE" > hex > + range 0 0xffffffff > default ARCH_TEXT_BASE > help > - The Address barebox gets linked at. > + The 32-bit address barebox gets linked at. This is forced > + to zero for relocatable barebox and fixed up at runtime, > + so barebox is executable on arbitrary addresses (given > + sufficient alignment). > > config BAREBOX_MAX_IMAGE_SIZE > prompt "Maximum size of barebox" > -- > 2.39.2 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |