[U-Boot-Users] sandpoint8245 Build fails with optimization turned off

Wolfgang Denk wd at denx.de
Thu Jan 12 08:27:04 CET 2006


In message <43C5A61B.8010603 at google.com> you wrote:
> I was attempting to debug an issue so I wanted to turn off the 
> optimization (change from -Os to -O0 in config.mk) so I can more easily 
> step thru code in gdb.  When I do this for the sandpoint8245 target I 
> get the following error.  I am using u-boot 1.1.4 pulled down yesterday 
...
> cannot move location counter backwards (from fff04288 to fff04000)

That means that the code became larger because of missing optimization, and you either need to
adapt your linker script (u-boot.lds).

> Has anyone else managed to fix this?

Of course. Some boards even provide a debug  version  of  the  linker
script (u-boot.lds.debug).

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Life is a game. Money is how we keep score.              - Ted Turner




More information about the U-Boot mailing list