
On Wed, Sep 8, 2010 at 4:16 PM, Wolfgang Denk wd@denx.de wrote:
Dear Paul Hsu,
In message 1283932498-8989-1-git-send-email-pochun.hsu@gmail.com you wrote:
If we use $(CC -print-libgcc-file-name) without option -march=armv4t, we will link the wrong version libgcc.a(for ARMv5). That causes cpu core raising excptions when u-boot running on the board.
On which tool chain is this causing problems?
I use toolchain released by code sourcery(Sourcery G++ Lite 2010q1-202 for ARM GNU/Linux).
$ /opt/arm-2010q1/bin/arm-none-linux-gnueabi-gcc -print-libgcc-file-name -march=armv4t /opt/arm-2010q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/armv4t/libgcc.a This libgcc.a is a correct one we need on ARMv4T.
If you use the same command wihtout -march=armv4t $ /opt/arm-2010q1/bin/arm-none-linux-gnueabi-gcc -print-libgcc-file-name /opt/arm-2010q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/libgcc.a This is not the one we need.
And how does this problem manifest?
Signed-off-by:Paul Hsu pochun.hsu@gmail.com
Makefile | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)
NAK. If really needed, this needs to be fixed in ARM specific config files / Makefiles, not in the top level Makefile.
I agree that we should find a better place to put ARM specific config in. But currently, top level Makefile is the one I found. Any suggestion?
BR, Paul
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de core error - bus dumped