[PATCH 9/9] Add compressed image support
Sascha Hauer
s.hauer at pengutronix.de
Thu Jul 19 16:42:12 EDT 2012
On Thu, Jul 19, 2012 at 08:32:38PM +0200, Johannes Stezenbach wrote:
> > > ...
> > > LD barebox
> > > arm-linux-ld -EL -Map barebox.map -static --gc-sections -o barebox \
> > > -T arch/arm/lib/barebox-compressed.lds \
> > > --start-group common/built-in.o drivers/built-in.o commands/built-in.o lib/built-in.o crypto/built-in.o net/built-in.o fs/built-in.o arch/arm/boards/foo/built-in.o arch/arm/mach-foo/built-in.o arch/arm/lib/built-in.o arch/arm/cpu/built-in.o piggy.lzo.o --end-group
> > >
> > >
> > > It shouldn't link all the -built-in.o into the uncompressor, should it?
> > > Or is it supposed to work via --gc-sections trick?
> >
> > Yes, it works using --gc-sections. Are you building a defconfig or a
> > custom one? If the error above is correct start_barebox is referenced
> > from the decompressor code. This should not happen.
>
> I'm building a custom one (unpublished code). It has some SPI flash
> boot assembly code, I guess that might cause the issue wrt the new section
> annotations. I'll look at it tomorrow. However, I still wonder
> about the empty $(barebox-compressed)?
It's empty here aswell, so this shouldn't be a problem. Though I should
probably simpy remove it.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list