[PATCH 2/3] Add DMO RealQ7 board support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Mar 8 10:46:11 EST 2013


On 16:06 Fri 08 Mar     , Sascha Hauer wrote:
> On Fri, Mar 08, 2013 at 03:48:43PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > > > +	.boot_data.size		= 192 * 1024,
> > > > barebox_image_size
> > > 
> > > ok. This btw will not work with CONFIG_RELOCATABLE as is since the
> > > linker cannot generate this value then.
> > why?
> 
> Absolute values will be zero when you link with -pie. They get fixed
> during relocation.
> 
> The image size is a relative value, when doing a
> 
> 	.word __barebox_image_end - start
> 
> in assembly it works correctly, but doing the same in C does not work.
> 
> > 
> > otherwise we need to update it via ld as done in the kernel as example
> 
> Can you give me a pointer what the kernel does?

we create the symbol at compilation
via --defsym

arch/arm/boot/compressed/Makefile

Best Regards,
J.
> 
> 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