I'm using GNU-ld to link my ARM application. I'm using AT91R40008 and arm-none-eabi-gcc compiler.
I have an error during linking my CRT0.s / C start-up file to my main() in main.c
The error were like this : at91r40008_start_gcc.o: at91r40008_start_gcc.s:281: relocation truncated to fit: R_ARM_PC24 against symbol `main' defined in .text section in MAIN.o
What's happened here ? How do I handle this ?
I already add ".global main" syntax in my C start-up file, so the linker would recognize the main(), but it doesnt help.
Thank You
-kunil