* [U-Boot-Users] sandpoint8245 Build fails with optimization turned off
@ 2006-01-12 0:43 Eric Olsen
2006-01-12 7:27 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Eric Olsen @ 2006-01-12 0:43 UTC (permalink / raw)
To: u-boot
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
and gcc 4.0.1 toolchain built by crosstool.
a - virtex2.o
a - xilinx.o
gmake[1]: Leaving directory
`/home/eolsen/tree/u-boot-1.1.4/u-boot-1.1.4/common'
UNDEF_SYM=`powerpc-603e-linux-gnu-objdump -x lib_generic/libgeneric.a
board/sandpoint/libsandpoint.a cpu/mpc824x/libmpc824x.a lib_ppc/libppc.a
fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a
drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a
post/cpu/libcpu.a common/libcommon.a |sed -n -e
's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
powerpc-603e-linux-gnu-ld -Bstatic -T
/home/eolsen/tree/u-boot-1.1.4/u-boot-1.1.4/board/sandpoint/u-boot.lds
-Ttext 0xFFF00000 -n $UNDEF_SYM cpu/mpc824x/start.o \
--start-group lib_generic/libgeneric.a
board/sandpoint/libsandpoint.a cpu/mpc824x/libmpc824x.a lib_ppc/libppc.a
fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a
drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a
post/cpu/libcpu.a common/libcommon.a --end-group -L
/usr/local/opt/crosstool/gcc-4.0.1-glibc-2.3.5/powerpc-603e-linux-gnu/bin/../lib/gcc/powerpc-603e-linux-gnu/4.0.1/nof
-lgcc \
-Map u-boot.map -o u-boot
/home/eolsen/tree/u-boot-1.1.4/u-boot-1.1.4/board/sandpoint/u-boot.lds:134
cannot move location counter backwards (from fff04288 to fff04000)
gmake: *** [u-boot] Error 1
Has anyone else managed to fix this?
Thanks
Eric
^ permalink raw reply [flat|nested] 2+ messages in thread* [U-Boot-Users] sandpoint8245 Build fails with optimization turned off
2006-01-12 0:43 [U-Boot-Users] sandpoint8245 Build fails with optimization turned off Eric Olsen
@ 2006-01-12 7:27 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2006-01-12 7:27 UTC (permalink / raw)
To: u-boot
In message <43C5A61B.8010603@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-12 7:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-12 0:43 [U-Boot-Users] sandpoint8245 Build fails with optimization turned off Eric Olsen
2006-01-12 7:27 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox