I've got the arm-linux-gcc cross compiler and am trying to write some small programs for a Cogent CSB335 ARM-based board. I wrote a simple program to poll the switches and blink the LEDs, naming the main routine _start so that the linker wouldn't complain. I compiled it with the following:
arm-linux-gcc -o blink --static -nostdlib -O0 blink.c
and it went through with no complaints. However, when I download the executable to the board and try to run it, I get the message "memory failure" and nothing else.
I seem to recall that you are supposed to be able to build stand-alone executables, but I haven't found a compiler or linker switch to do this. Does anyone have any pointer's as to what I'm missing?
thanks.
-- Jeff Dutky