
In message 20030911165139.GR8367@pengutronix.de you wrote:
On Thu, Sep 11, 2003 at 05:17:23PM +0530, renjithgopal wrote:
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0xa1fe0000 -I/uboot/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=strongarm1100 -Wall -Wstrict-prototypes -c -o crc32.o crc32.c as: unrecognized option `-marmv4'
Hmm, here the compile run sets "-march=armv4", not "-marmv4". Did you tweak your makefiles somehow?
In fact all relevant architecture specific config files in U-Boot use "-march=armv4":
-> find * -type f | xargs egrep armv4 cpu/arm720t/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=arm7tdmi cpu/arm920t/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 cpu/sa1100/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=strongarm1100 cpu/arm925t/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 cpu/at91rm9200/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=arm7tdmi cpu/pxa/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=strongarm1100 cpu/arm926ejs/config.mk:PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4
And as you can see, these options are present on the GCC command line above. And it's not GCC, but "as" who is complaining about the unrecognized option. Obviously GCC is passing additional (or bad, or at least incompatible) options to "as".
As I wrote before: this cross toolchain is broken.
Best regards,
Wolfgang Denk